2021-02-04 19:15:23 +01:00
|
|
|
import React from 'react';
|
|
|
|
import CountdownTimer from './countdown-timer';
|
2022-03-31 20:31:31 +02:00
|
|
|
import README from './README.mdx';
|
2020-10-06 20:28:38 +02:00
|
|
|
|
|
|
|
export default {
|
2021-12-01 20:27:57 +01:00
|
|
|
title: 'Pages/Swaps/CountdownTimer',
|
2023-01-20 20:27:46 +01:00
|
|
|
|
2022-03-31 20:31:31 +02:00
|
|
|
component: CountdownTimer,
|
|
|
|
parameters: {
|
|
|
|
docs: {
|
|
|
|
page: README,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
argTypes: {
|
|
|
|
timeStarted: {
|
|
|
|
type: 'number',
|
|
|
|
},
|
|
|
|
timeOnly: {
|
|
|
|
type: 'boolean',
|
|
|
|
},
|
|
|
|
timerBase: {
|
|
|
|
type: 'number',
|
|
|
|
},
|
|
|
|
labelKey: {
|
|
|
|
type: 'string',
|
|
|
|
},
|
|
|
|
infoTooltipLabelKey: {
|
|
|
|
type: 'string',
|
|
|
|
},
|
|
|
|
warningTime: {
|
|
|
|
type: 'string',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
args: {
|
|
|
|
timeStarted: Date.now(),
|
|
|
|
timeOnly: false,
|
|
|
|
timerBase: 20000,
|
|
|
|
labelKey: 'disconnectPrompt',
|
|
|
|
infoTooltipLabelKey: 'disconnectAllAccountsConfirmationDescription',
|
|
|
|
warningTime: '0:15',
|
|
|
|
},
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2020-10-06 20:28:38 +02:00
|
|
|
|
2022-03-31 20:31:31 +02:00
|
|
|
export const DefaultStory = (args) => {
|
|
|
|
return <CountdownTimer {...args} />;
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2020-10-06 20:28:38 +02:00
|
|
|
|
2021-12-01 20:27:57 +01:00
|
|
|
DefaultStory.storyName = 'Default';
|