Skip to content

Instantly share code, notes, and snippets.

View enrique26's full-sized avatar
🎯
Focusing

Enrique enrique26

🎯
Focusing
View GitHub Profile
import { Children, createContext, useContext, type ReactNode } from "react";
const dialogContext = createContext<Record<string, any>>({});
type DialogProps = {
isOpen?: boolean;
children: any;
onClose?: () => void;
};
export default function Dialog({