/** * External dependencies */ import { __ } from '@wordpress/i18n'; import { useState } from '@wordpress/element'; import { PanelBody, PanelRow } from 'wordpress-components'; import Button from '@woocommerce/base-components/button'; import TextInput from '@woocommerce/base-components/text-input'; import Label from '@woocommerce/base-components/label'; import PropTypes from 'prop-types'; import withComponentId from '@woocommerce/base-hocs/with-component-id'; /** * Internal dependencies */ import './style.scss'; const TotalsCouponCodeInput = ( { componentId, onSubmit } ) => { const [ couponValue, setCouponValue ] = useState( '' ); return ( } initialOpen={ true } > setCouponValue( newCouponValue ) } /> ); }; TotalsCouponCodeInput.propTypes = { onSubmit: PropTypes.func, }; export default withComponentId( TotalsCouponCodeInput );