17 lines
657 B
JavaScript
17 lines
657 B
JavaScript
import * as React from 'react';
|
|
import { CheckmarkCircleFilled, InfoFilled, WarningFilled, DiamondDismissFilled } from '@fluentui/react-icons';
|
|
export function getIntentIcon(intent) {
|
|
switch(intent){
|
|
case 'info':
|
|
return /*#__PURE__*/ React.createElement(InfoFilled, null);
|
|
case 'warning':
|
|
return /*#__PURE__*/ React.createElement(WarningFilled, null);
|
|
case 'error':
|
|
return /*#__PURE__*/ React.createElement(DiamondDismissFilled, null);
|
|
case 'success':
|
|
return /*#__PURE__*/ React.createElement(CheckmarkCircleFilled, null);
|
|
default:
|
|
return null;
|
|
}
|
|
}
|