feat: Implement Algolia DocSearch, enhance MDX components, and update build configurations.
This commit is contained in:
4
components/contexts/AccordionContext.ts
Normal file
4
components/contexts/AccordionContext.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import { createContext } from 'react';
|
||||
|
||||
// Create a context to check if a component is inside an accordion group
|
||||
export const AccordionGroupContext = createContext<{ inGroup: boolean } | null>(null);
|
||||
@@ -1,8 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import * as React from "react";
|
||||
import { ThemeProvider as NextThemesProvider } from "next-themes";
|
||||
import { type ThemeProviderProps } from "next-themes/dist/types";
|
||||
import { type ThemeProviderProps } from "next-themes";
|
||||
|
||||
export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
|
||||
return <NextThemesProvider {...props}>{children}</NextThemesProvider>;
|
||||
|
||||
Reference in New Issue
Block a user