bananas-commerce-admin
Version:
What's this, an admin for apes?
14 lines (13 loc) • 537 B
TypeScript
import React from "react";
import { DialogProps } from "@mui/material/Dialog";
type BananasDialogProps = Omit<DialogProps, "open">;
declare function DialogContextProvider(props: {
children: React.ReactNode;
}): React.JSX.Element;
export declare function BcomDialog(): React.JSX.Element;
export declare function useDialog(): (title: string, children: React.ReactNode, options?: {
ok?: string | false;
cancel?: string | false;
dialogProps?: BananasDialogProps;
}) => Promise<boolean>;
export default DialogContextProvider;