import React from "react"; import { Icon, Text } from "office-ui-fabric-react"; export interface PanelErrorProps { message: string; isWarning: boolean; showErrorDetails: boolean; openNotificationConsole?: () => void; } export const PanelErrorComponent: React.FunctionComponent = (props: PanelErrorProps): JSX.Element => (
{props.isWarning ? ( ) : ( )} {props.message} {props.showErrorDetails && ( More details )}
);