import clsx from "clsx" import React, { MouseEventHandler } from "react" type InputContainerProps = React.HTMLAttributes & { className?: string onClick?: MouseEventHandler onFocusLost?: () => void } const InputContainer: React.FC = ({ onClick, onFocusLost, children, className, ...props }) => { return (
{ if (onFocusLost && !e.currentTarget.contains(e.relatedTarget)) { onFocusLost() } }} className={clsx([ `bg-grey-5 inter-base-regular h-18 border-grey-20 focus-within:shadow-input focus-within:border-violet-60 rounded-rounded flex w-full cursor-text flex-col border p-3`, className, ])} > {children}
) } export default InputContainer