"use client"; type AdminInputProps = { label?: string; error?: string; helpText?: string; required?: boolean; className?: string; children: React.ReactNode; }; export function AdminInput({ label, error, helpText, required, className = "", children }: AdminInputProps) { return (
{label && ( )} {children} {helpText && !error &&

{helpText}

} {error &&

{error}

}
); } // Styled text input wrapper type AdminTextInputProps = { value: string; onChange: (e: React.ChangeEvent) => void; placeholder?: string; type?: string; disabled?: boolean; className?: string; }; export function AdminTextInput({ value, onChange, placeholder, type = "text", disabled, className = "" }: AdminTextInputProps) { return ( ); } // Styled textarea wrapper type AdminTextareaProps = { value: string; onChange: (e: React.ChangeEvent) => void; placeholder?: string; rows?: number; disabled?: boolean; className?: string; }; export function AdminTextarea({ value, onChange, placeholder, rows = 3, disabled, className = "" }: AdminTextareaProps) { return (