import { ActionsAdd, ActionsCopy, ActionsDelete } from '@repay/cactus-icons'
import React from 'react'
import { Breadcrumb, Button, Header, Link, Text } from '../'
import { Story } from '../helpers/storybook'
export default {
title: 'Header',
component: Header,
argTypes: {
bgColor: { name: 'background color' },
},
args: {
title: 'Header',
bgColor: 'lightContrast',
},
} as const
type HeaderStory = Story<
typeof Header,
{
title: string
description: string
}
>
export const BasicUsage: HeaderStory = ({ title, bgColor }) => {
return (
)
}
export const WithButton: HeaderStory = ({ title, bgColor }) => {
return (
{title}
)
}
export const WithBreadcrumbs: HeaderStory = ({ title, bgColor }) => {
return (
{title}
Label
Label
)
}
export const WithALotOfBreadCrumbs: HeaderStory = ({ title, bgColor }) => {
return (
{title}
{[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17].map((i) => (
{`label ${i}`}
))}
Some text because I like crowded UIs
)
}
export const WithLongTextItem: HeaderStory = ({ title, bgColor }) => {
return (
Label 1
Label 2
Label 3
Label 4
Active label
You are configuring Merchant directory from OWE Demo Merchant
{title}
)
}
export const WithMultipleItems: HeaderStory = ({ title, bgColor }) => {
return (
Label
Label
Some text because I like crowded UIs
{title}
)
}
export const WithGoBackLink: HeaderStory = ({ title, bgColor }) => {
return (
Go back!
{title}
)
}
export const WithDescription: HeaderStory = ({ title, description, bgColor }) => {
return (
)
}
WithDescription.args = {
title: 'I Have a Description',
description: 'I am describing something about this page',
}
export const WithEverything: HeaderStory = ({ title, description, bgColor }) => {
return (
Home
Full Header
{title}
{description}
)
}
WithEverything.args = {
title: 'I Am a Jam-Packed Header',
description:
'This story was put here to showcase the header with all sub-components that it offers',
}