mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-18 07:51:55 +03:00
1bad6dee4e
no-issue
19 lines
433 B
JavaScript
19 lines
433 B
JavaScript
import FormInput from './FormInput';
|
|
import {IconName} from './icons';
|
|
|
|
export default ({value, error, children, onInput, className}) => (
|
|
<FormInput
|
|
type="text"
|
|
name="name"
|
|
label="Name"
|
|
value={value}
|
|
error={error}
|
|
icon={IconName}
|
|
placeholder="Name..."
|
|
required={true}
|
|
className={className}
|
|
onInput={onInput}>
|
|
{children}
|
|
</FormInput>
|
|
);
|