35 lines
791 B
TypeScript
35 lines
791 B
TypeScript
import type { Meta, StoryObj } from '@storybook/react';
|
|
import { NotificationsView, NotificationsViewSkeleton } from './notifications-view';
|
|
|
|
const meta: Meta<typeof NotificationsView> = {
|
|
title: 'Components/Features/Views/NotificationsView',
|
|
component: NotificationsView,
|
|
parameters: { layout: 'fullscreen' },
|
|
tags: ['autodocs'],
|
|
decorators: [
|
|
(Story) => (
|
|
<div className="bg-background min-h-layout-page">
|
|
<Story />
|
|
</div>
|
|
),
|
|
],
|
|
};
|
|
|
|
export default meta;
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
export const Default: Story = {
|
|
name: 'Par défaut',
|
|
};
|
|
|
|
export const Loading: Story = {
|
|
render: () => <NotificationsViewSkeleton />,
|
|
name: 'Chargement',
|
|
};
|
|
|
|
export const Empty: Story = {
|
|
args: {
|
|
initialNotifications: [],
|
|
},
|
|
name: 'Vide',
|
|
};
|