import React, { forwardRef, ForwardRefExoticComponent } from "react"; import { Box, BoxProps } from "../Box"; interface ListProps extends BoxProps { as?: "ol" | "ul"; } export type ListWithItem = ForwardRefExoticComponent & { Item: ForwardRefExoticComponent; }; const ListItem = forwardRef((props, ref) => { return ; }); const List = forwardRef( (props, ref) => { const { as = "ul", ...rest } = props; return ; }, ) as ListWithItem; List.Item = ListItem; export { List };