import * as strings from 'ProjectExtensionsStrings' import React, { FC } from 'react' import { BaseDialog } from '../@BaseDialog' import ReactMarkdown from 'react-markdown' import rehypeRaw from 'rehype-raw' import styles from './ErrorDialog.module.scss' import { IErrorDialogProps } from './types' import { MessageBarType, DefaultButton, PrimaryButton, MessageBar, DialogFooter } from '@fluentui/react' export const ErrorDialog: FC = ({ error, version, messageType = MessageBarType.error, onDismiss, onSetupClick }) => { const onRenderFooter = () => { if (error.name === 'AlreadySetup') { return ( <> ) } return } return (
{error.stack}
{onRenderFooter()}
) } export * from './types'