import {
    type SnackBarInternalProps
} from "../components/snackBar/type";

export type SnackBarType = {
    data?: Array<SnackBarDataType>;
};

export type SnackBarDataType = Omit<SnackBarInternalProps, "id"> & {
    id?: string;
};

export type SnackBarContextType = {
    open: (toastData: SnackBarDataType) => string;
    close: (props?: {
        index?: number;
        id?: string;
    }) => void;
    data: Array<SnackBarDataType>;
};

export type SnackBarStateContextType = {
    data: Array<SnackBarDataType>;
};
