import type { ReactNode } from 'react' import { useCallback } from 'react' import { Dialog, DialogContent } from '@/app/components/base/ui/dialog' import { cn } from '@/utils/classnames' type DialogProps = { className?: string children: ReactNode show: boolean onClose?: () => void } const MenuDialog = ({ className, children, show, onClose, }: DialogProps) => { const close = useCallback(() => onClose?.(), [onClose]) return ( { if (!open) close() }} >
{children}
) } export default MenuDialog