mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
23 lines
465 B
JavaScript
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;
|