type GlobalContextProps = {
  dict: Dictionary;
  openModal: (modal: GlobalModal) => void;
  closeModal: (id: string, closeDefault?: boolean) => void;
};

type GlobalContextProviderProps = {
  children: React.ReactNode;
};

type GlobalParams = {
  lang: string;
};

type GlobalModal = {
  id: string;
  content: React.ReactNode;
  closing?: boolean;
  onClose?: () => void;
};

type ConfirmOptions = {
  message?: string | React.ReactNode;
  title?: string;
  confirmLabel?: string;
  cancelLabel?: string;
};

type AppConfirmProps = ConfirmOptions & {
  handleConfirm: () => void;
  handleCancel: () => void;
};
