import { ComponentStory, ComponentMeta } from '@storybook/react';
import { Container } from 'components/layout';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { BrowserRouter } from 'react-router-dom';
import { ProfileAction } from './index';

export default {
  title: 'App Components/Profile/Action',
  component: ProfileAction,
  argTypes: {
    isSheetOpen: {
      control: { type: 'boolean' },
    },
  },
} as ComponentMeta<typeof ProfileAction>;

export const Interactive: ComponentStory<typeof ProfileAction> = (args) => {
  return (
    <BrowserRouter>
      <SafeAreaProvider>
        <Container height={250}>
          <ProfileAction isSheetOpen={args.isSheetOpen} {...args} />
        </Container>
      </SafeAreaProvider>
    </BrowserRouter>
  );
};

Interactive.args = {
  isSheetOpen: true,
};
