File size: 1,743 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
import React from 'react';
import useLocale from '../../../.dumi/hooks/useLocale';
import BehaviorMap from '../../../.dumi/theme/common/BehaviorMap';
const locales = {
cn: {
title: '了解页面/模块内需要关注的提示',
understandAlertInfo: '了解提示信息',
understandAlertContent: '了解提示内容',
understandAlertType: '了解提示类型',
performAlertOperations: '针对提示进行操作',
},
en: {
title: 'Understand alerts that need attention within pages/modules',
understandAlertInfo: 'Understand Alert Information',
understandAlertContent: 'Understand Alert Content',
understandAlertType: 'Understand Alert Type',
performAlertOperations: 'Perform Operations on Alerts',
},
};
const BehaviorPattern: React.FC = () => {
const [locale] = useLocale(locales);
return (
<BehaviorMap
data={{
id: '200000004',
label: locale.title,
children: [
{
id: '500000061',
label: locale.understandAlertInfo,
targetType: 'mvp',
children: [
{
id: '707000085',
label: locale.understandAlertContent,
link: 'alert-index-tab-design-demo-content',
},
{
id: '707000086',
label: locale.understandAlertType,
link: 'alert-index-tab-design-demo-type',
},
],
},
{
id: '200000005',
label: locale.performAlertOperations,
targetType: 'extension',
link: 'alert-index-tab-design-demo-action',
},
],
}}
/>
);
};
export default BehaviorPattern;
|