woocommerce-paypal-payments/modules/ppcp-settings/resources/js/Components/ReusableComponents/Controls/ControlTextInput.js
2025-02-05 12:59:39 +01:00

23 lines
465 B
JavaScript

import { TextControl } from '@wordpress/components';
import { Action, Description } from '../Elements';
const ControlTextInput = ( {
value,
description,
onChange,
placeholder = '',
} ) => (
<Action>
<TextControl
__nextHasNoMarginBottom
className="ppcp-r-vertical-text-control"
placeholder={ placeholder }
value={ value }
onChange={ onChange }
/>
<Description>{ description }</Description>
</Action>
);
export default ControlTextInput;