import { TooltipProvider } from "@radix-ui/react-tooltip"; import { themes } from "@storybook/theming"; import I18nProvider from "next-translate/I18nProvider"; import "../src/styles/fonts.scss"; import "../src/styles/global.scss"; import "../src/styles/reset.scss"; import "../src/styles/theme.scss"; import "./styles.scss"; import commonEn from "../locales/en/common.json"; import homeEn from "../locales/en/home.json"; const themeDecorator = (Story, context) => { const theme = context.globals.theme; return ( <>
); }; export const decorators = [themeDecorator]; export const globalTypes = { theme: { name: "Theme", description: "Global theme for components", defaultValue: "light", toolbar: { icon: "circlehollow", items: ["light", "dark", "sepia"], showName: true, }, }, }; const viewports = { mobileS: { name: "MobileS", styles: { width: `320px`, height: "100%", }, }, mobileM: { name: "MobileM", styles: { width: `375px`, height: "100%", }, }, mobileL: { name: "MobileL", styles: { width: `425px`, height: "100%", }, }, tablet: { name: "Tablet", styles: { width: `768px`, height: "100%", }, }, desktop: { name: "Desktop", styles: { width: `1024px`, height: "100%", }, }, }; export const parameters = { layout: "fullscreen", viewport: { viewports, }, docs: { theme: themes.dark, }, };