import type * as React from "react" import { cn } from "@/lib/utils" import { Input } from "./input" interface IconInputProps extends React.ComponentProps<"input"> { icon?: React.ReactNode rightElement?: React.ReactNode } function IconInput({ icon, rightElement, className, ...props }: IconInputProps) { return (
{icon && (
{icon}
)} {rightElement && (
{rightElement}
)}
) } export { IconInput }