import React, { forwardRef } from "react"; import { Flex, ThemeUIStyleObject } from "theme-ui"; interface LiProps { children: React.ReactNode; sx: ThemeUIStyleObject; Component: typeof Flex; } const Li = forwardRef( ( { children, Component = Flex, sx = {}, ...rest }: LiProps, ref: React.ForwardedRef, ) => ( {children} ), ); export default Li;