The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { SkeletonLine } from '@/ui/feedback/skeleton/components/SkeletonLine';
import { NavigationDrawerSection } from '@/ui/navigation/navigation-drawer/components/NavigationDrawerSection';
import { styled } from '@linaria/react';
import { SKELETON_HEIGHT_SIZES } from 'twenty-ui/primitives/feedback';
import { themeCssVariables } from 'twenty-ui/theme';
const StyledTitleSkeleton = styled.div`
align-items: center;
display: flex;
height: ${themeCssVariables.spacing[5]};
padding-left: ${themeCssVariables.spacing[1]};
padding-right: ${themeCssVariables.spacing['0.5']};
`;
const StyledRowsContainer = styled.div`
box-sizing: border-box;
display: flex;
flex-direction: column;
gap: ${themeCssVariables.spacing[1]};
padding-left: ${themeCssVariables.spacing[1]};
width: 100%;
`;
export const NavigationDrawerWorkspaceSectionSkeletonLoader = () => {
return (
<NavigationDrawerSection>
<StyledTitleSkeleton>
<SkeletonLine
width={72}
height={SKELETON_HEIGHT_SIZES.xs}
highlightColor={themeCssVariables.background.transparent.light}
/>
</StyledTitleSkeleton>
<StyledRowsContainer>
<SkeletonLine
height={SKELETON_HEIGHT_SIZES.s}
highlightColor={themeCssVariables.background.transparent.light}
/>
<SkeletonLine
height={SKELETON_HEIGHT_SIZES.s}
highlightColor={themeCssVariables.background.transparent.light}
/>
<SkeletonLine
height={SKELETON_HEIGHT_SIZES.s}
highlightColor={themeCssVariables.background.transparent.light}
/>
</StyledRowsContainer>
</NavigationDrawerSection>
);
};