1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-12-23 21:05:06 +01:00
upscayl/renderer/components/settings-tab/ResetSettings.tsx
NayamAmarshe d721e7ae7f
Update to new schema, ADD: zh, ja, ru, es and fr
MOD: All necessary strings to match
2024-09-05 21:37:19 -04:00

24 lines
645 B
TypeScript

import { translationAtom } from "@/atoms/translations-atom";
import { useAtomValue } from "jotai";
import React from "react";
export function ResetSettings() {
const t = useAtomValue(translationAtom);
return (
<div className="flex flex-col items-start gap-2">
<p className="text-sm font-medium">
{t("SETTINGS.RESET_SETTINGS.BUTTON_TITLE")}
</p>
<button
className="btn btn-primary"
onClick={async () => {
localStorage.clear();
alert(t("SETTINGS.RESET_SETTINGS.ALERT"));
}}
>
{t("SETTINGS.RESET_SETTINGS.BUTTON_TITLE")}
</button>
</div>
);
}