import * as React from "react";

import { cn } from "@/lib/cn";

export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {}

const Input = React.forwardRef<HTMLInputElement, InputProps>(({ className, ...props }, ref) => {
  return (
    <input
      ref={ref}
      className={cn(
        "flex h-11 w-full rounded-md border border-[var(--admin-border)] bg-white px-3 py-2 text-sm text-[#2a3140] outline-none placeholder:text-[#8a93a3] focus:ring-2 focus:ring-[#f5a7c1]",
        className,
      )}
      {...props}
    />
  );
});
Input.displayName = "Input";

export { Input };
