import React from "react";
import { cn } from "@/lib/utils";

export type InputProps = React.InputHTMLAttributes<HTMLInputElement>;

export const Input = React.forwardRef<HTMLInputElement, InputProps>(
  ({ className, type, ...props }, ref) => {
    return (
      <input
        type={type}
        className={cn(
          "flex h-10 w-full rounded-xl border border-[#E1E6E7] bg-white px-3.5 py-2 text-sm text-[#2E3A3F] placeholder:text-[#66767A]/70 focus-visible:outline-none focus-visible:border-[#4A7C82] focus-visible:ring-2 focus-visible:ring-[#4A7C82]/20 disabled:cursor-not-allowed disabled:opacity-50 transition-all",
          className
        )}
        ref={ref}
        {...props}
      />
    );
  }
);
Input.displayName = "Input";
