mirror of
https://github.com/StepanovPlaton/torrent_frontend.git
synced 2026-04-04 04:40:50 +04:00
Add header and themes
This commit is contained in:
3
src/features/gameCard/gameCard.tsx
Normal file
3
src/features/gameCard/gameCard.tsx
Normal file
@@ -0,0 +1,3 @@
|
||||
export const GameCard = () => {
|
||||
return <></>;
|
||||
};
|
||||
3
src/features/gameCard/index.ts
Normal file
3
src/features/gameCard/index.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { GameCard } from "./gameCard";
|
||||
|
||||
export { GameCard };
|
||||
3
src/features/schemeSwitch/index.ts
Normal file
3
src/features/schemeSwitch/index.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { SchemeSwitch } from "./schemeSwitch";
|
||||
|
||||
export { SchemeSwitch };
|
||||
17
src/features/schemeSwitch/schemeSwitch.tsx
Normal file
17
src/features/schemeSwitch/schemeSwitch.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
"use client";
|
||||
|
||||
import { SunIcon } from "@/shared/assets/icons";
|
||||
import { useTheme } from "next-themes";
|
||||
|
||||
export const SchemeSwitch = () => {
|
||||
const { theme, setTheme } = useTheme();
|
||||
|
||||
return (
|
||||
<>
|
||||
<SunIcon
|
||||
className="mr-5 h-8 w-8 cursor-pointer"
|
||||
onClick={() => setTheme(theme == "light" ? "dark" : "light")}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user