diff --git a/components/pages/create.stories.tsx b/components/pages/create.stories.tsx new file mode 100644 index 00000000..e37395e2 --- /dev/null +++ b/components/pages/create.stories.tsx @@ -0,0 +1,66 @@ +import { Meta, StoryObj } from '@storybook/nextjs-vite' +import { Breadcrumb, Card } from 'flowbite-react' +import { HiHome } from 'react-icons/hi' +import CreatePublisherFormContent from '@/components/publisher/CreatePublisherFormContent' + +const CreatePublisherPageLayout = () => { + const handleSuccess = (username: string) => { + console.log('Publisher created successfully:', username) + // In a real scenario, this would navigate to the publisher page + } + + const handleCancel = () => { + console.log('Create publisher cancelled') + // In a real scenario, this would navigate back + } + + return ( +
+ {t( + 'Register a publisher to begin distributing custom nodes on Comfy.' + )} +
+ + + > + ) +} + +export default CreatePublisherFormContent diff --git a/components/publisher/CreatePublisherModal.stories.tsx b/components/publisher/CreatePublisherModal.stories.tsx new file mode 100644 index 00000000..2497972c --- /dev/null +++ b/components/publisher/CreatePublisherModal.stories.tsx @@ -0,0 +1,41 @@ +import type { Meta, StoryObj } from '@storybook/nextjs-vite' +import CreatePublisherModal from './CreatePublisherModal' + +// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export +const meta: Meta- {t( - 'Register a publisher to begin distributing custom nodes on Comfy.' - )} -
- - +- {t( - 'Register a publisher to begin distributing custom nodes on Comfy.' - )} -
- - +