mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
26 lines
613 B
TypeScript
26 lines
613 B
TypeScript
import React from 'react';
|
|
|
|
import { cn } from 'lib/utils/cn';
|
|
import { ContentLoader } from 'toolkit/components/loaders/ContentLoader';
|
|
|
|
import useThemeColors from './utils/useThemeColors';
|
|
|
|
interface Props {
|
|
className?: string;
|
|
}
|
|
|
|
const CodeEditorLoading = ({ className }: Props) => {
|
|
const themeColors = useThemeColors();
|
|
|
|
return (
|
|
<div
|
|
className={ cn('flex items-center justify-center overflow-hidden w-full h-full', className) }
|
|
style={{ backgroundColor: themeColors['editor.background'] }}
|
|
>
|
|
<ContentLoader/>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default React.memo(CodeEditorLoading);
|