import {
    type ModalInternalProps
} from "../components/modal/type";

export type ModalType = {
    data?: Array<ModalDataType>;
};

export type ModalDataType = Omit<ModalInternalProps, "id"> & {
    isAutoClose?: boolean;
    id?: string;
};

export type ModalContextType = {
    open: (modalData: ModalDataType) => void;
    close: (props?: {
        index?: number;
        id?: string;
    }) => void;
    data: Array<ModalDataType>;
};

export type ModalStateContextType = {
    data: Array<ModalDataType>;
};
