import type IDialogProps from "../components/dialog/type";

export type DialogType = {
    data?: Array<DialogDataType>;
};

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

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

export type DialogStateContextType = {
    data: Array<DialogDataType>;
};
