"use client";
import { InputHTMLAttributes, forwardRef } from "react";
interface InputProps extends InputHTMLAttributes {
label?: string;
error?: string;
}
const Input = forwardRef(
({ label, error, className = "", ...props }, ref) => {
return (
{label && (
)}
{error && (
{error}
)}
);
}
);
Input.displayName = "Input";
export default Input;