import type { LucideIcon } from 'lucide-react'; interface Props { label: string; name: string; type: string; icon: LucideIcon; placeholder: string; showEye?: boolean; toggleEye?: () => void; eyeIcon?: LucideIcon; // --- TAMBAHKAN DUA INI --- value: string; onChange: (e: React.ChangeEvent) => void; } export default function LoginInput({ label, name, type, icon: Icon, placeholder, showEye, toggleEye, eyeIcon: EyeIcon, value, onChange // <--- Terima props di sini }: Props) { return (
{showEye && toggleEye && EyeIcon && ( )}
); }