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 { TopBar } from './index';

export default {
  title: 'App Components/ Calling /TopBar',
  component: TopBar,
  argTypes: {},
} as ComponentMeta<typeof TopBar>;

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

Interactive.args = {};
