mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-05-07 05:44:35 +02:00
23 lines
931 B
TypeScript
23 lines
931 B
TypeScript
import { ExclamationCircleIcon } from '@heroicons/react/24/outline';
|
|
import * as React from 'react';
|
|
import useThemeColors from '../../hooks/useThemeColors';
|
|
import * as l10n from '@vscode/l10n';
|
|
import { LocalizationKey } from '../../../localization';
|
|
|
|
export interface IEmptyViewProps { }
|
|
|
|
export const EmptyView: React.FunctionComponent<IEmptyViewProps> = (
|
|
props: React.PropsWithChildren<IEmptyViewProps>
|
|
) => {
|
|
const { getColors } = useThemeColors();
|
|
|
|
return (
|
|
<div className="flex flex-col items-center justify-center w-full">
|
|
<ExclamationCircleIcon className={`w-1/12 opacity-90 ${getColors(`text-gray-500 dark:text-whisper-900`, `text-[var(--frontmatter-secondary-text)]`)}`} />
|
|
<h2 className={`text-xl ${getColors(`text-gray-500 dark:text-whisper-900`, `text-[var(--frontmatter-secondary-text)]`)}`}>
|
|
{l10n.t(LocalizationKey.dashboardDataViewEmptyViewHeading)}
|
|
</h2>
|
|
</div>
|
|
);
|
|
};
|