import { Expander, ExpanderItem } from '@aws-amplify/ui-react'; import { Properties, Category } from '../../../scripts/types/catalog'; import { PropsTable } from './PropsTable'; type CategoryProperty = { [key in Category]: Properties }; type SortedPropertiesByCategory = { [key: string]: Properties }[]; export function PropsTableExpander({ propsSortedByCategory, }: { propsSortedByCategory: SortedPropertiesByCategory; }) { const expanderItem = (categoryProperty: CategoryProperty): JSX.Element => { const title = Object.keys(categoryProperty)[0]; return ( ); }; return ( {propsSortedByCategory.map(expanderItem)} ); }