import React, { ReactNode } from 'react' import * as TabsPrimitive from '@radix-ui/react-tabs' import './styles.scss' type TabsProps = { options: { name: string; value: string }[] children: ReactNode defaultValue?: string value: string onValueChange?: (value: string) => void } type TabsContentProps = { value: string children: ReactNode } const TabsContent = ({ value, children }: TabsContentProps) => { return ( {children} ) } const Tabs = ({ options, children, defaultValue, value, onValueChange, }: TabsProps) => ( {options.map((option, i) => { return ( {option.name} ) })} {children} ) export { Tabs, TabsContent }