import type { Meta, StoryFn } from '@storybook/react'; import React, { FC } from 'react'; import { times } from '@anton.bobrov/react-hooks'; import { PageScroll } from '.'; type TComponent = typeof PageScroll.Provider; const meta: Meta = { title: 'Scroll/PageScroll', component: PageScroll.Provider, }; export default meta; const Components: FC = () => (
{times( (index) => (
Element
), 100, )}
); const Template: StoryFn = (props) => ( 'custom'}> ); export const Default = Template.bind({}); Default.args = {};