'use client' import { InputHTMLAttributes, forwardRef } from 'react' interface InputProps extends InputHTMLAttributes { label?: string; error?: string } const Input = forwardRef(({ label, error, className = '', id, ...props }, ref) => { const inputId = id || (label ? label.toLowerCase().replace(/\s+/g, '-') : undefined) return (
{label && } {error &&

{error}

}
) }) Input.displayName = 'Input' export default Input