2024-05-09 20:59:29 +08:00
|
|
|
import React from 'react';
|
|
|
|
import Skeleton, { SkeletonTheme } from 'react-loading-skeleton';
|
|
|
|
import Styled from './styles';
|
2024-05-29 21:26:11 +08:00
|
|
|
import { getSettingsSingletonInstance } from '/imports/ui/services/settings';
|
2024-05-09 20:59:29 +08:00
|
|
|
|
|
|
|
const MenuSkeleton: React.FC = () => {
|
2024-05-29 21:26:11 +08:00
|
|
|
const Settings = getSettingsSingletonInstance();
|
2024-05-09 20:59:29 +08:00
|
|
|
// @ts-ignore
|
|
|
|
const { isRTL } = Settings.application;
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Styled.Skeleton>
|
|
|
|
<SkeletonTheme baseColor="#DCE4EC">
|
|
|
|
<Styled.SkeletonWrapper>
|
|
|
|
<Skeleton direction={isRTL ? 'rtl' : 'ltr'} />
|
|
|
|
</Styled.SkeletonWrapper>
|
|
|
|
</SkeletonTheme>
|
|
|
|
</Styled.Skeleton>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default MenuSkeleton;
|