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

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

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

Interactive.args = {
  isSheetOpen: true,
};
