import React from 'react'; import { RegisterOptions, useFormContext } from 'react-hook-form'; import SearchIcon from 'components/common/Icons/SearchIcon'; import * as S from './Input.styled'; export interface InputProps extends React.InputHTMLAttributes, Omit { name?: string; hookFormOptions?: RegisterOptions; search?: boolean; } const Input: React.FC = ({ name, hookFormOptions, search, inputSize = 'L', ...rest }) => { const methods = useFormContext(); return ( {search && } {name ? ( ) : ( )} ); }; export default Input;