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

export default {
  title: 'App Components/ Room / Direct Header',
  component: Direct,
  argTypes: {
    status: {
      options: ['pending', 'downloading', 'downloaded'],
      control: { type: 'select' },
    },
  },
} as ComponentMeta<typeof Direct>;

export const Interactive: ComponentStory<typeof Direct> = (args) => {
  return (
    <BrowserRouter>
      <SafeAreaProvider>
        <Direct {...args} />
      </SafeAreaProvider>
    </BrowserRouter>
  );
};

Interactive.args = {
  isOpen: true,
  isPopUp: true,
};
