This commit is contained in:
IGNY8 VPS (Salman)
2025-11-21 03:58:29 +00:00
parent 5106f7b200
commit b293856ef2
9 changed files with 515 additions and 61 deletions

View File

@@ -1,4 +1,4 @@
import React, { createContext, useState, useContext, useEffect } from "react";
import { createContext, useState, useContext, useEffect, type FC, type ReactNode } from "react";
type Theme = "light" | "dark";
@@ -9,7 +9,7 @@ type ThemeContextType = {
const ThemeContext = createContext<ThemeContextType | undefined>(undefined);
export const ThemeProvider: React.FC<{ children: React.ReactNode }> = ({
export const ThemeProvider: FC<{ children: ReactNode }> = ({
children,
}) => {
const [theme, setTheme] = useState<Theme>("light");