The Node.js® Website
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 38 lines 871 B view raw
1import type { Meta as MetaObj, StoryObj } from '@storybook/react'; 2 3import CrossLink from '@/components/Common/CrossLink'; 4 5type Story = StoryObj<typeof CrossLink>; 6type Meta = MetaObj<typeof CrossLink>; 7 8export const Prev: Story = { 9 args: { 10 type: 'previous', 11 text: 'How to install Node.js', 12 link: 'https://nodejs.dev/en/learn/how-to-install-nodejs/', 13 }, 14 decorators: [ 15 Story => ( 16 <div className="w-[305px]"> 17 <Story /> 18 </div> 19 ), 20 ], 21}; 22 23export const Next: Story = { 24 args: { 25 type: 'next', 26 text: 'How much JavaScript do you need to know to use Node.js?', 27 link: 'https://nodejs.dev/en/learn/how-much-javascript-do-you-need-to-know-to-use-nodejs/', 28 }, 29 decorators: [ 30 Story => ( 31 <div className="w-[305px]"> 32 <Story /> 33 </div> 34 ), 35 ], 36}; 37 38export default { component: CrossLink } as Meta;