import React, { Fragment } from 'react'; import { CopyProps } from '../data-containers/category-view-props'; import { DataEntryInput, TextDataEntryInputProps } from './data-entry-input'; import { DataTitleCopyable } from './data-title'; interface BaseDataEntryProps { slug: string; slugModifier?: string | number; // string used with slug with array items (ensures the form labels link to the input for the correct item) title: string; tooltip?: string; disabled?: boolean; copy?: CopyProps; // CopyProps clashes with propTypes mode?: 'view' | 'edit' | 'multi-edit'; isUrl?: boolean; required?: boolean; onChange?: (key: string, value: any) => void; } interface DataEntryProps extends BaseDataEntryProps, TextDataEntryInputProps { value?: string; } const DataEntry: React.FC = (props) => { return ( ); }; export default DataEntry; export { BaseDataEntryProps };