import * as React from 'react';
import { ReactNode } from 'react';
import { TestMemoryRouter, useLocation, useNavigate } from '../routing';
/**
* This is a storybook decorator that wrap the story inside a fake browser.
* It features an editable address bar with back and forward buttons.
*
* @example Usage in a storybook
* export default {
* title: 'ra-core/Admin/CustomRoutes/Authenticated',
* decorators: [FakeBrowserDecorator],
* parameters: {
* // You can pass the react-router history initial entries like this
* initialEntries: ['/authenticated'],
* },
* };
*/
export const FakeBrowserDecorator = (Story, context) => {
return (
);
};
export const Browser = ({ children }: { children: ReactNode }) => {
return (
<>