2026-02-03 08:56:11 +00:00
|
|
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
|
|
|
import { CreateAPIKeyModal } from './CreateAPIKeyModal';
|
|
|
|
|
import { fn } from '@storybook/test';
|
|
|
|
|
|
|
|
|
|
const meta: Meta<typeof CreateAPIKeyModal> = {
|
2026-02-05 13:20:06 +00:00
|
|
|
title: 'Components/Features/Developer/Modals/CreateAPIKeyModal',
|
2026-02-03 08:56:11 +00:00
|
|
|
component: CreateAPIKeyModal,
|
|
|
|
|
parameters: { layout: 'centered' },
|
|
|
|
|
tags: ['autodocs'],
|
|
|
|
|
args: { onClose: fn() },
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default meta;
|
|
|
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
|
|
|
|
|
|
export const Default: Story = { name: 'Par défaut' };
|
|
|
|
|
export const Created: Story = { name: 'Clé créée' };
|