Skip to content

Commit b78b624

Browse files
committed
[#103] ✅ add Header Stories
1 parent 664bacf commit b78b624

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import { Meta, StoryObj } from '@storybook/react'
2+
3+
import { Header } from '@/components/shared/header'
4+
5+
export default {
6+
title: 'Shared/Header/Header',
7+
component: Header,
8+
parameters: {
9+
layout: 'fullscreen',
10+
},
11+
} as Meta
12+
13+
export const Default: StoryObj = {
14+
args: {
15+
isAuthenticated: false,
16+
user: null,
17+
},
18+
}
19+
export const WithUserMenu: StoryObj = {
20+
args: {
21+
isAuthenticated: true,
22+
user: {
23+
id: '2',
24+
name: 'Alexander',
25+
imageUrl: 'https://picsum.photos/250/250',
26+
},
27+
},
28+
}
29+
export const LoggedInWithoutUser: StoryObj = {
30+
args: {
31+
isAuthenticated: true,
32+
user: null,
33+
},
34+
}

0 commit comments

Comments
 (0)