import { X } from "lucide-react"

export default function ModalHeader({
    title,
    subtitle,
    onClose,
}: {
    title: string
    subtitle: string
    onClose: () => void
}) {
    return (
        <div className="flex items-center justify-between px-6 py-4 border-b border-gray-100 flex-shrink-0">
            <div>
                <h2 className="text-base font-bold text-gray-900">{title}</h2>
                {subtitle && <p className="text-xs text-gray-400 mt-0.5">{subtitle}</p>}
            </div>
            <button
                type="button"
                onClick={onClose}
                className="w-7 h-7 rounded-lg flex items-center justify-center text-gray-400 hover:text-gray-600 hover:bg-gray-100 transition-colors"
            >
                <X className="w-4 h-4" />
            </button>
        </div>
    )
}