import { FC, PropsWithChildren } from 'react' export interface Props { type: `${'un' | ''}ordered` } const List: FC> = ({ type, children }) => { const Tag = type === 'ordered' ? 'ol' : 'ul' return {children} } export default List