40 lines
No EOL
670 B
TypeScript
40 lines
No EOL
670 B
TypeScript
import { Meta, StoryObj } from '@storybook/nextjs-vite'
|
|
import { NextPrevButtons } from './NextPrevButtons'
|
|
|
|
const meta: Meta<typeof NextPrevButtons> = {
|
|
component: NextPrevButtons,
|
|
}
|
|
|
|
type Story = StoryObj<typeof NextPrevButtons>;
|
|
export default meta
|
|
|
|
export const Default: Story = {
|
|
args: {
|
|
prev: {
|
|
text: 'Blog 1',
|
|
href: 'https://prev'
|
|
},
|
|
next: {
|
|
text: 'Blog 3',
|
|
href: 'https://next'
|
|
}
|
|
},
|
|
}
|
|
|
|
export const NoPrev: Story = {
|
|
args: {
|
|
next: {
|
|
text: 'Blog 3',
|
|
href: 'https://next'
|
|
}
|
|
},
|
|
}
|
|
|
|
export const NoNext: Story = {
|
|
args: {
|
|
prev: {
|
|
text: 'Blog 1',
|
|
href: 'https://prev'
|
|
}
|
|
},
|
|
} |