2021-03-05 08:00:21 -05:00
|
|
|
import WordCountModalContent from '../js/features/word-count-modal/components/word-count-modal-content'
|
|
|
|
|
|
|
|
export const Basic = args => {
|
|
|
|
const data = {
|
|
|
|
headers: 4,
|
|
|
|
mathDisplay: 40,
|
|
|
|
mathInline: 400,
|
2021-04-27 03:52:58 -04:00
|
|
|
textWords: 4000,
|
2021-03-05 08:00:21 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
return <WordCountModalContent {...args} data={data} />
|
|
|
|
}
|
|
|
|
|
|
|
|
export const Loading = args => {
|
|
|
|
return <WordCountModalContent {...args} loading />
|
|
|
|
}
|
|
|
|
|
|
|
|
export const LoadingError = args => {
|
|
|
|
return <WordCountModalContent {...args} error />
|
|
|
|
}
|
|
|
|
|
|
|
|
export const Messages = args => {
|
|
|
|
const messages = [
|
|
|
|
'Lorem ipsum dolor sit amet.',
|
2021-04-27 03:52:58 -04:00
|
|
|
'Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.',
|
2021-03-05 08:00:21 -05:00
|
|
|
].join('\n')
|
|
|
|
|
|
|
|
return <WordCountModalContent {...args} data={{ messages }} />
|
|
|
|
}
|
|
|
|
|
|
|
|
export default {
|
2021-03-25 06:11:45 -04:00
|
|
|
title: 'Modals / Word Count / Content',
|
2021-03-05 08:00:21 -05:00
|
|
|
component: WordCountModalContent,
|
|
|
|
args: {
|
|
|
|
animation: false,
|
|
|
|
show: true,
|
|
|
|
error: false,
|
2021-04-27 03:52:58 -04:00
|
|
|
loading: false,
|
2021-03-05 08:00:21 -05:00
|
|
|
},
|
|
|
|
argTypes: {
|
2021-04-27 03:52:58 -04:00
|
|
|
handleHide: { action: 'hide' },
|
|
|
|
},
|
2021-03-05 08:00:21 -05:00
|
|
|
}
|