import clsx from 'clsx' import { forwardRef, ReactNode } from 'react' import * as FontSizes from '../../styles/fontStyles.css' import { descriptiveList, list } from './List.css' export interface ListProps { tag?: keyof Pick fontStyle?: keyof FontSizes.FontSizes className?: string children?: ReactNode } export const List = forwardRef( ({ tag = 'ul', fontStyle = 'XS', className, children }, ref) => { const Element = tag return ( {children} ) } ) interface DescriptiveListProps { data: [title: string, item: ReactNode][] } export const DescriptiveList = ({ data }: DescriptiveListProps) => { return (
{data.map(datum => (
{`${datum[0]} –`}
{datum[1]}
))}
) }