import type { Decorator } from '@storybook/react';
import { BrowserRouter } from 'react-router-dom';

export const RouterDecorator: Decorator = StoryComponent => (
  <BrowserRouter>
    <StoryComponent />
  </BrowserRouter>
);
