import { ChevronRightIcon } from '@heroicons/react/24/solid'; import RichTextDisplay from 'components/page/rich-text-display'; import startCase from 'lodash.startcase'; import { Tab, TabGroup, TabList, TabPanel, TabPanels } from './tab-components'; const Tabs = ({ fields }: { fields: { [key: string]: string } }) => { const keys = Object.keys(fields); if (!keys.length) { return null; } return (
{keys.map((key) => ( {startCase(key)} ))} {keys.map((key) => ( ))}
); }; export const TabsPlaceholder = () => { return (
); }; export default Tabs;