".github/vscode:/vscode.git/clone" did not exist on "72eab37da0178b567987392073365d7b3c83a467"
MessageInfo.tsx 641 Bytes
Newer Older
1
import * as React from 'react';
2
import { MessageBar, MessageBarType } from '@fluentui/react';
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

interface MessageInfoProps {
    info: string;
    typeInfo: string;
    className?: string;
}

class MessageInfo extends React.Component<MessageInfoProps, {}> {
    constructor(props: MessageInfoProps) {
        super(props);
    }

    render(): React.ReactNode {
        const { info, typeInfo, className } = this.props;
        return (
18
            <MessageBar messageBarType={MessageBarType[typeInfo]} isMultiline={true} className={className}>
19
20
21
22
23
24
                {info}
            </MessageBar>
        );
    }
}

25
export default MessageInfo;