import React , { FC } from 'react' ; import MaskedInput from './MaskedInput' ; import { masks } from '../constants' ; type Props = Omit < React . ComponentPropsWithoutRef < typeof MaskedInput > , 'mask' > ; const CepInput = ( { ... props } ) => { return ( < MaskedInput { ... props } inputMode = "numeric" pattern = "[0-9\-]*" mask = { masks . CEP } / > ) ; } ; export default CepInput ;