2023-03-31 19:23:27 +02:00
|
|
|
import React from 'react';
|
|
|
|
import {
|
|
|
|
STATUS_CONNECTED,
|
|
|
|
STATUS_CONNECTED_TO_ANOTHER_ACCOUNT,
|
|
|
|
STATUS_NOT_CONNECTED,
|
|
|
|
} from '../../../helpers/constants/connected-sites';
|
|
|
|
import {
|
|
|
|
BackgroundColor,
|
|
|
|
Color,
|
|
|
|
} from '../../../helpers/constants/design-system';
|
2023-06-28 15:37:03 +02:00
|
|
|
import { ConnectedSiteMenu } from '.';
|
2023-03-31 19:23:27 +02:00
|
|
|
|
|
|
|
export default {
|
2023-06-14 17:51:19 +02:00
|
|
|
title: 'Components/Multichain/ConnectedSiteMenu',
|
|
|
|
component: ConnectedSiteMenu,
|
2023-03-31 19:23:27 +02:00
|
|
|
argTypes: {
|
|
|
|
globalMenuColor: {
|
|
|
|
control: 'text',
|
|
|
|
},
|
|
|
|
text: {
|
|
|
|
control: 'text',
|
|
|
|
},
|
|
|
|
status: {
|
|
|
|
control: 'text',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
args: {
|
|
|
|
globalMenuColor: Color.iconAlternative,
|
|
|
|
status: STATUS_NOT_CONNECTED,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
const Template = (args) => {
|
2023-06-14 17:51:19 +02:00
|
|
|
return <ConnectedSiteMenu {...args} />;
|
2023-03-31 19:23:27 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
export const DefaultStory = Template.bind({});
|
|
|
|
|
|
|
|
export const ConnectedStory = Template.bind({});
|
|
|
|
ConnectedStory.args = {
|
|
|
|
globalMenuColor: Color.successDefault,
|
|
|
|
text: 'connected',
|
|
|
|
status: STATUS_CONNECTED,
|
|
|
|
};
|
|
|
|
|
|
|
|
export const ConnectedtoAnotherAccountStory = Template.bind({});
|
|
|
|
ConnectedtoAnotherAccountStory.args = {
|
|
|
|
globalMenuColor: BackgroundColor.backgroundDefault,
|
|
|
|
text: 'not connected',
|
|
|
|
status: STATUS_CONNECTED_TO_ANOTHER_ACCOUNT,
|
|
|
|
};
|