import type IBottomSheetProps from "../components/bottomSheet/type";

export type BottomSheetType = {
    data?: Array<BottomSheetDataType>;
};

export type BottomSheetDataType = Omit<IBottomSheetProps, "id"> & {
    isAutoClosed?: boolean;
    id?: string;
};

export type BottomSheetContextType = {
    open: (dialogData: BottomSheetDataType) => string;
    close: (props?: {
        index?: number;
        id?: string;
    }) => void;
    data: Array<BottomSheetDataType>;
};

export type BottomSheetStateContextType = {
    data: Array<BottomSheetDataType>;
};
