import { addDecorator } from "@storybook/react"; import { I18nextProvider } from "react-i18next"; import "../styles/globals.css"; import "../styles/storybook-styles.css"; import i18n from "./i18next"; export const parameters = { actions: { argTypesRegex: "^on[A-Z].*" }, controls: { matchers: { color: /(background|color)$/i, date: /Date$/, }, }, }; addDecorator((storyFn) => (
{storyFn()}
)); window.getEmbedNamespace = () => { const url = new URL(document.URL); const namespace = url.searchParams.get("embed"); return namespace; }; window.getEmbedTheme = () => { return "auto"; };