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-2xl border border-[var(--in-border)] bg-white px-4 py-2 text-sm text-[var(--in-text)] outline-none placeholder:text-[var(--in-muted)] focus:border-[var(--in-accent)] focus:ring-2 focus:ring-[#d6eee7]",
        className,
      )}
      {...props}
    />
  );
});
Input.displayName = "Input";

export { Input };
