import { Box } from '@rocket.chat/fuselage'; import type { Meta, StoryFn } from '@storybook/react'; import Growth from './Growth'; import { useAutoSequence } from '../../stories/hooks/useAutoSequence'; export default { component: Growth, parameters: { layout: 'centered', controls: { hideNoControlsWarning: true }, }, } satisfies Meta; export const Example: StoryFn = () => { const value = useAutoSequence([3, -2, 1, -1, 2, -3]); return {value}; }; export const Positive: StoryFn = () => {3}; export const Zero: StoryFn = () => {0}; export const Negative: StoryFn = () => {-3}; export const WithTextStyle: StoryFn = () => ( {(['h2', 'c1', 'micro'] as const).map((fontScale) => ( {3} {-3} ))} );