nextjs-themes
Version:
Unleash the Power of React Server Components! Use multiple themes on your site with confidence, without losing any advantages of React Server Components.
8 lines (7 loc) • 337 B
TypeScript
/**
* Server components and client components need to be exported from separate files as
* directive on top of the file from which component is imported takes effect.
* i.e., server component re-exported from file with "use client" will behave as client component
*/
export * from "./theme-switcher";
export * from "./color-switch";