import React , { FunctionComponent } from 'react' ; import BaseInput from './utils/BaseInput' ; import components from '#config/components' ; import { BaseInputComponentProps , GiftCardInputName } from '#typings' ; const propTypes = components . GiftCardInput . propTypes ; const displayName = components . GiftCardInput . displayName ; export type GiftCardInputProps = { name : GiftCardInputName ; } & Omit < BaseInputComponentProps , 'name' > & JSX . IntrinsicElements [ 'input' ] & JSX . IntrinsicElements [ 'textarea' ] ; const GiftCardInput = ( props ) => { const { placeholder = '' , ... p } = props ; return < BaseInput placeholder = { placeholder } { ... p } />; } ; GiftCardInput . propTypes = propTypes ; GiftCardInput . displayName = displayName ; export default GiftCardInput ;