type Props = { value: string; onChange: () => void } const CustomInput = ({ value, onChange }: Props) => { // ...some additional logic return }