import React , { FC } from 'react' ; import * as styles from './List.css' ; export const List = ( { children , type = 'ul' } ) => { return < ol className = { type === 'ol' ? styles . ol : styles . ul } > { children } < /ol>; } ; export const ListItem = ( { children } ) => { return < li className = { styles . li } > { children } < /li>; } ;