import * as React from "react"; import type { ListOwnProps, PolymorphicWithRef } from "../types"; import { ListBase } from "../base-components"; import { ListItem } from "../ListItem"; type ListProps = PolymorphicWithRef< T, ListOwnProps >; type ListElement = ( props: ListProps ) => React.ReactElement>; const ListContainer: ListElement = React.forwardRef( ( props: ListProps, innerRef: typeof props.ref ) => { const { component, ...rest } = props; return ; } ); const List = Object.assign(ListContainer, { Item: ListItem }); export default List;