'use client'; import { ReactNode } from 'react'; interface ModalProps { isOpen: boolean; onClose: () => void; title: string; children: ReactNode; actions?: { label: string; onClick: () => void; variant?: 'primary' | 'secondary'; disabled?: boolean; }[]; } export default function Modal({ isOpen, onClose, title, children, actions = [], }: ModalProps) { if (!isOpen) return null; return (