import React from 'react'; import type { Meta, StoryObj } from '@storybook/react'; import { within } from '@storybook/test'; import { HydraAdmin, type HydraAdminProps } from '../hydra'; import { OpenApiAdmin } from '../openapi'; import DevtoolsLayout from './layout/DevtoolsLayout'; /** * # Basic `` component * The `` component without any parameter. */ const Basic = ({ entrypoint }: BasicProps) => ( ); interface BasicProps extends Pick {} const meta = { title: 'Admin/Basic', component: Basic, parameters: { layout: 'fullscreen', }, } satisfies Meta; export default meta; type Story = StoryObj; export const Hydra: Story = { play: async ({ canvasElement }) => { const canvas = within(canvasElement); await canvas.findByText('Greetings'); }, args: { entrypoint: process.env.ENTRYPOINT, }, }; export const OpenApi = () => ( );