// // Copyright 2023 DXOS.org // import React, { createContext, type PropsWithChildren } from 'react'; import { type Elevation } from '@dxos/react-ui-types'; export interface ElevationContextValue { elevation?: Elevation; } export type ElevationProviderProps = PropsWithChildren<{ elevation?: Elevation; }>; export const ElevationContext = createContext({ elevation: 'base' }); export const ElevationProvider = ({ elevation, children }: ElevationProviderProps) => ( {children} );