Files
explore/ui/shared/monaco/CodeEditorLoading.tsx
2025-10-20 12:04:47 +02:00

23 lines
575 B
TypeScript

import { Center, chakra } from '@chakra-ui/react';
import React from 'react';
import { ContentLoader } from 'toolkit/components/loaders/ContentLoader';
import useThemeColors from './utils/useThemeColors';
interface Props {
className?: string;
}
const CodeEditorLoading = ({ className }: Props) => {
const themeColors = useThemeColors();
return (
<Center bgColor={ themeColors['editor.background'] } w="100%" h="100%" overflow="hidden" className={ className }>
<ContentLoader/>
</Center>
);
};
export default React.memo(chakra(CodeEditorLoading));