import React from 'react'
import WordCountModalContent from '../js/features/word-count-modal/components/word-count-modal-content'
// NOTE: WordCountModalContent is wrapped in modal classes, without modal behaviours
export const Loading = args => (
)
Loading.args = {
loading: true,
error: false
}
export const LoadingError = args => (
)
LoadingError.args = {
loading: false,
error: true
}
export const Loaded = args => (
)
Loaded.args = {
loading: false,
error: false,
data: {
headers: 4,
mathDisplay: 40,
mathInline: 400,
textWords: 4000
}
}
export const Messages = args => (
)
Messages.args = {
loading: false,
error: false,
data: {
messages: [
'Lorem ipsum dolor sit amet.',
'Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.'
].join('\n'),
headers: 4,
mathDisplay: 40,
mathInline: 400,
textWords: 4000
}
}
export default {
title: 'Word Count Modal',
component: WordCountModalContent,
argTypes: {
handleHide: { action: 'handleHide' }
}
}