29 lines
652 B
TypeScript
29 lines
652 B
TypeScript
import type { Meta, StoryObj } from '@storybook/react';
|
|
import { Navbar } from './Navbar';
|
|
|
|
const meta: Meta<typeof Navbar> = {
|
|
title: 'App/Layouts/Navbar',
|
|
component: Navbar,
|
|
parameters: {
|
|
layout: 'fullscreen',
|
|
},
|
|
tags: ['autodocs'],
|
|
decorators: [
|
|
(Story) => (
|
|
<div className="min-h-layout-story bg-background">
|
|
<Story />
|
|
</div>
|
|
),
|
|
],
|
|
argTypes: {
|
|
onNavigate: { action: 'onNavigate' },
|
|
onLogout: { action: 'onLogout' },
|
|
},
|
|
};
|
|
|
|
export default meta;
|
|
type Story = StoryObj<typeof Navbar>;
|
|
|
|
export const Default: Story = {
|
|
args: {},
|
|
};
|