frontend: add search & search history

This commit is contained in:
Kentai Radiquum 2024-04-21 07:04:16 +05:00
parent 6b88601417
commit e3a79c6864
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
5 changed files with 145 additions and 17 deletions

View file

@ -3,10 +3,23 @@
import "beercss";
import "material-dynamic-colors";
import { NavigationRail } from "@/app/components/NavigationRail/NavigationRail";
import { setTheme, getTheme, setMode, getMode } from "./store/theme-store";
import { useEffect, useState } from "react";
import { ColorPicker } from "@/app/components/ColorPicker/ColorPicker";
export function setMode(mode) {
localStorage.setItem("mode", mode);
}
export function getMode() {
return localStorage.getItem("mode");
}
export function setTheme(theme) {
localStorage.setItem("theme", theme);
}
export function getTheme() {
return localStorage.getItem("theme");
}
export const App = (props) => {
const [colorPicker, setColorPicker] = useState(false);