32 lines
595 B
TypeScript
32 lines
595 B
TypeScript
import { Meta, StoryObj } from '@storybook/nextjs-vite'
|
|
import { AdminMenu } from './AdminMenu'
|
|
|
|
const meta: Meta<typeof AdminMenu> = {
|
|
component: AdminMenu,
|
|
}
|
|
|
|
type Story = StoryObj<typeof AdminMenu>
|
|
export default meta
|
|
|
|
export const Authenticated: Story = {
|
|
args: {
|
|
collection: 'blog',
|
|
id: 'some_id',
|
|
isAuthenticated: true,
|
|
},
|
|
}
|
|
|
|
export const AuthenticatedWithoutId: Story = {
|
|
args: {
|
|
collection: 'blog',
|
|
isAuthenticated: true,
|
|
},
|
|
}
|
|
|
|
export const NotAuthenticated: Story = {
|
|
args: {
|
|
collection: 'blog',
|
|
id: 'some_id',
|
|
isAuthenticated: false,
|
|
},
|
|
}
|