简体中文
一个全局的Provider组件,用于包裹你的应用程序
DesignSystemProvider
import '@repo/design-system/styles/globals.css'; import { fonts } from '@repo/design-system/lib/fonts'; import { DesignSystemProvider } from '@repo/design-system'; import type { ReactNode } from 'react'; type RootLayoutProperties = { readonly children: ReactNode; }; const RootLayout = ({ children }: RootLayoutProperties) => ( <html lang="en" className={fonts} suppressHydrationWarning> <body> <DesignSystemProvider>{children}</DesignSystemProvider> </body> </html> ); export default RootLayout;