diff --git a/frontend/app/components/Settings/Settings.jsx b/frontend/app/components/Settings/Settings.jsx index 40d64be..27861e3 100644 --- a/frontend/app/components/Settings/Settings.jsx +++ b/frontend/app/components/Settings/Settings.jsx @@ -1,3 +1,14 @@ +"use client"; + +function deleteAllSettings() { + localStorage.removeItem("mode"); + localStorage.removeItem("theme"); +} + +function deleteSearchHistory() { + localStorage.removeItem("searches"); +} + export default function Settings() { return ( <> @@ -7,21 +18,21 @@ export default function Settings() { >
Настройки