1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-02 14:15:06 +01:00
metamask-extension/ui/components/app/security-provider-banner-alert/blockaid-banner-alert/blockaid-banner-alert.stories.js
2023-07-24 12:24:17 +05:30

43 lines
1.1 KiB
JavaScript

import React from 'react';
import {
BlockaidReason,
BlockaidResultType,
} from '../../../../../shared/constants/security-provider';
import BlockaidBannerAlert from '.';
const mockFeatures = [
'Operator is an EOA',
'Operator is untrusted according to previous activity',
];
export default {
title: 'Components/App/SecurityProviderBannerAlert/BlockaidBannerAlert',
argTypes: {
features: {
control: 'array',
description:
'ppomResponse.features value which is a list displayed as SecurityProviderBannerAlert details',
},
reason: {
control: 'select',
options: Object.values(BlockaidReason),
description: 'ppomResponse.reason value',
},
resultType: {
control: 'select',
options: Object.values(BlockaidResultType),
description: 'ppomResponse.resultType value',
},
},
args: {
features: mockFeatures,
reason: BlockaidReason.setApprovalForAll,
resultType: BlockaidResultType.Warning,
},
};
export const DefaultStory = (args) => (
<BlockaidBannerAlert ppomResponse={args} />
);
DefaultStory.storyName = 'Default';