import { Icon, Link, Stack, Text } from "office-ui-fabric-react"; import React from "react"; export interface PanelInfoErrorProps { message: string; messageType: string; showErrorDetails: boolean; link?: string; linkText?: string; openNotificationConsole?: () => void; } export const PanelInfoErrorComponent: React.FunctionComponent = ( props: PanelInfoErrorProps ): JSX.Element => { let icon: JSX.Element; if (props.messageType === "error") { icon = ; } else if (props.messageType === "warning") { icon = ; } else if (props.messageType === "info") { icon = ; } return ( {icon} {props.message}{" "} {props.link && props.linkText && ( {props.linkText} )} {props.showErrorDetails && ( More details )} ); };