import {BasicModalComponent as Modal} from './basic-modal.component';
import type {Meta, StoryObj} from '@storybook/react';
import React from 'react';

const meta: Meta<typeof Modal> = {
    title: 'Molecules/BasicModal',
    component: Modal,
};
export default meta;

type Story = StoryObj<typeof Modal>;

export const Default: Story = {
    render: (args) => (
        <Modal {...args} data-testid='basic-modal'>
            <Modal.Header>Modal header</Modal.Header>
            <Modal.Body>Modal Body</Modal.Body>
            <Modal.Footer>Modal Footer</Modal.Footer>
        </Modal>
    ),
    args: {
        open: false,
        onClose: () => {},
        children: <div></div>,
    },
};
