(props: ArrayInputProps)
| 5 | import { ArrayInputBase } from '../controller/input/ArrayInputBase'; |
| 6 | |
| 7 | export const ArrayInput = (props: ArrayInputProps) => { |
| 8 | const { |
| 9 | label, |
| 10 | children, |
| 11 | resource: resourceFromProps, |
| 12 | source: arraySource, |
| 13 | validate, |
| 14 | } = props; |
| 15 | |
| 16 | return ( |
| 17 | <div> |
| 18 | <div> |
| 19 | <FieldTitle |
| 20 | label={label} |
| 21 | source={arraySource} |
| 22 | resource={resourceFromProps} |
| 23 | isRequired={isRequired(validate)} |
| 24 | /> |
| 25 | </div> |
| 26 | <ArrayInputBase {...props}>{children}</ArrayInputBase> |
| 27 | </div> |
| 28 | ); |
| 29 | }; |
| 30 | |
| 31 | export interface ArrayInputProps |
| 32 | extends Omit<InputProps, 'disabled' | 'readOnly'> { |
nothing calls this directly
no test coverage detected