import clsx from 'clsx'
import {ComponentPropsWithoutRef, forwardRef, Ref} from 'react'
import {Row} from 'web/components/layout/row'
/** Text input. Wraps html `` */
export const Input = forwardRef(
(
props: {
error?: boolean
searchIcon?: boolean
} & ComponentPropsWithoutRef<'input'>,
ref: Ref,
) => {
const {error, searchIcon, className, ...rest} = props
const rowClassName =
'bg-canvas-50 h-12 rounded-xl border border-canvas-200 px-4 shadow-sm transition-colors items-center gap-2'
const elem = (
)
if (searchIcon)
return (
{searchIcon && 🔍}
{elem}
)
return elem
},
)