@ozen-ui/kit
Version:
React component library
11 lines (10 loc) • 610 B
TypeScript
import type { DrawerDeviceType, DrawerSizeVariantByDeviceType, DrawerVariant } from './entities';
export type DrawerContextValue<DeviceType extends DrawerDeviceType> = {
size: DrawerSizeVariantByDeviceType[DeviceType];
variant: DrawerVariant;
onClose: () => void;
deviceType: DeviceType;
};
export declare const DrawerContextDefaultValue: DrawerContextValue<DrawerDeviceType>;
export declare const DrawerContext: import("react").Context<DrawerContextValue<"mobile" | "desktop">>;
export declare const useDrawerContext: <DeviceType extends DrawerDeviceType>() => DrawerContextValue<DeviceType>;