Closes https://github.com/twentyhq/twenty/issues/6484 <img width="270" alt="image" src="https://github.com/user-attachments/assets/3cfd7a5a-5239-4998-87f7-a9b45e3b5229">
30 lines
884 B
TypeScript
30 lines
884 B
TypeScript
import { useTheme } from '@emotion/react';
|
|
import styled from '@emotion/styled';
|
|
import Skeleton, { SkeletonTheme } from 'react-loading-skeleton';
|
|
|
|
const StyledSkeletonColumn = styled.div`
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: ${({ theme }) => theme.spacing(1)};
|
|
height: 76px;
|
|
padding-left: ${({ theme }) => theme.spacing(1)};
|
|
`;
|
|
|
|
export const NavigationDrawerSectionForObjectMetadataItemsSkeletonLoader: React.FC =
|
|
() => {
|
|
const theme = useTheme();
|
|
return (
|
|
<SkeletonTheme
|
|
baseColor={theme.background.tertiary}
|
|
highlightColor={theme.background.transparent.light}
|
|
borderRadius={4}
|
|
>
|
|
<StyledSkeletonColumn>
|
|
<Skeleton width={196} height={16} />
|
|
<Skeleton width={196} height={16} />
|
|
<Skeleton width={196} height={16} />
|
|
</StyledSkeletonColumn>
|
|
</SkeletonTheme>
|
|
);
|
|
};
|