import { SKELETON_LOADER_HEIGHT_SIZES } from '@/activities/components/SkeletonLoader'; import { css } from '@linaria/core'; import { styled } from '@linaria/react'; import { useContext } from 'react'; import Skeleton, { SkeletonTheme } from 'react-loading-skeleton'; import { ThemeContext } from 'twenty-ui/theme-constants'; const StyledSkeletonContainer = styled.div` align-items: flex-start; display: flex; flex-direction: column; gap: 6px; width: 100%; `; const fillSkeletonContainer = css` display: block; width: 100%; `; export const MainNavigationDrawerItemsSkeletonLoader = ({ title, length, }: { title?: boolean; length: number; }) => { const { theme } = useContext(ThemeContext); return ( {title && ( )} {Array.from({ length }).map((_, index) => ( ))} ); };