import React, { ReactElement, ReactNode } from 'react' import { Tab, Tabs as ReactTabs, TabList, TabPanel } from 'react-tabs' import styles from './Tabs.module.css' import shortid from 'shortid' interface TabsItem { title: string content: ReactNode } export default function Tabs({ items, className }: { items: TabsItem[] className?: string }): ReactElement { return ( {items.map((item) => ( {item.title} ))}
{items.map((item) => ( {item.content} ))}
) }