import * as React from "react"; import type { DrawerOwnProps } from "./types"; import type { PolymorphicWithRef } from "../types"; import DrawerBase from "./DrawerBase"; import { DrawerItems } from "../DrawerItems"; type DrawerProps = PolymorphicWithRef< T, DrawerOwnProps >; type DrawerElement = ( props: DrawerProps ) => React.ReactElement>; const Drawer: DrawerElement = React.forwardRef( ( props: DrawerProps, innerRef: typeof props.ref ) => { const { component = "nav", ...rest } = props; return ( ); } ); export default Object.assign(Drawer, { Items: DrawerItems, });