mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-05-09 06:44:36 +02:00
19 lines
750 B
TypeScript
19 lines
750 B
TypeScript
import { ExclamationTriangleIcon } from '@heroicons/react/24/solid';
|
|
import * as React from 'react';
|
|
import * as l10n from '@vscode/l10n';
|
|
import { LocalizationKey } from '../../../localization';
|
|
|
|
export interface IErrorViewProps { }
|
|
|
|
export const ErrorView: React.FunctionComponent<IErrorViewProps> = (
|
|
_: React.PropsWithChildren<IErrorViewProps>
|
|
) => {
|
|
return (
|
|
<main className={`h-full w-full flex flex-col justify-center items-center space-y-2`}>
|
|
<ExclamationTriangleIcon className={`w-24 h-24 text-[var(--vscode-editorError-foreground)]`} />
|
|
<p className="text-xl">{l10n.t(LocalizationKey.commonErrorMessage)}</p>
|
|
<p className="text-base">{l10n.t(LocalizationKey.dashboardErrorViewDescription)}</p>
|
|
</main>
|
|
);
|
|
};
|