import { loginState } from './atoms' ; import { InputBase } from '@/presentation/components' ; import { useRecoilState } from 'recoil' ; import React from 'react' ; type Props = { type : string ; name : string ; placeholder : string ; } ; const Input = ( { type , name , placeholder } ) => { const [ state , setState ] = useRecoilState ( loginState ) ; return ( < InputBase type = { type } name = { name } placeholder = { placeholder } state = { state } setState = { setState } / > ) ; } ; export default Input ;