import React from 'react';
import {ConditionalWrapperComponent as ConditionalWrapper} from './conditional-wrapper.component';
import type {Meta, StoryObj} from '@storybook/react';

const meta: Meta<typeof ConditionalWrapper> = {
    title: 'Atoms/ConditionalWrapper',
    component: ConditionalWrapper,
};
export default meta;

type Story = StoryObj<typeof ConditionalWrapper>;

export const Default: Story = {
    render: (args) => <ConditionalWrapper {...args} />,
    args: {
        enable: false,
        children: <div>children</div>,
        wrapper: (children) => <div>wrapper {children}</div>,
    },
};
