import { Story } from '@storybook/react';
import { FC } from 'react';
import { BlockProvider, BlocksProvider } from '../Provider';
import Breadcrumbs from './Breadcrumbs';
export default {
title: 'Blocks/Breadcrumbs',
};
const Link: FC<{ href: string }> = ({ href, children }) => {
return (
{
e.preventDefault();
history.pushState({}, '', href);
}}
>
{children}
);
};
const Template: Story = (props) => (
null,
DownIcon: () => null,
SchemaForm: () => null,
}}
externals={{}}
utils={{
BlockLoader: ({ name, ...config }) => Block {name}
,
}}
>
);
export const Default = Template.bind({});
Default.args = {
links: [
{
href: '/',
label: 'Root',
},
{
href: '/foo',
label: 'Foo',
},
{
href: '/foo/bar',
label: 'Bar',
},
],
};