import * as React from 'react'; import { ctw, Skeleton } from '@ballerine/ui'; export const SidebarMenuSkeleton = React.forwardRef< HTMLDivElement, React.ComponentProps<'div'> & { showIcon?: boolean; } >(({ className, showIcon = false, ...props }, ref) => { // Random width between 50 to 90%. const width = React.useMemo(() => { return `${Math.floor(Math.random() * 40) + 50}%`; }, []); return (
{showIcon && }
); }); SidebarMenuSkeleton.displayName = 'SidebarMenuSkeleton';