mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 00:11:49 +03:00
1bad6dee4e
no-issue
20 lines
478 B
JavaScript
20 lines
478 B
JavaScript
import FormInput from './FormInput';
|
|
import {IconName} from './icons';
|
|
|
|
export default ({value, disabled, error, children, onInput, className}) => (
|
|
<FormInput
|
|
type="text"
|
|
name="coupon"
|
|
label="coupon"
|
|
value={value}
|
|
error={error}
|
|
icon={IconName}
|
|
placeholder="Coupon..."
|
|
required={false}
|
|
disabled={disabled}
|
|
className={className}
|
|
onInput={onInput}>
|
|
{children}
|
|
</FormInput>
|
|
);
|