import React from 'react'; import { Link } from 'react-router-dom'; import { useMultiEditData } from '../hooks/use-multi-edit-data'; import ErrorBox from '../components/error-box'; import InfoBox from '../components/info-box'; import { dataFields } from '../config/data-fields-config'; import DataEntry from './data-components/data-entry'; import { Category } from '../config/categories-config'; interface MultiEditProps { category: string; } const MultiEdit: React.FC = (props) => { const [data, error] = useMultiEditData(); const isLike = props.category === Category.Community; return (

{ isLike ? <>Like Me! : <>Copy {props.category} data }

{ error ? : } { !isLike && data && Object.keys(data).map((key => ( ))) }
Back to view Back to edit
); }; export default MultiEdit;