mirror of
https://github.com/upscayl/upscayl.git
synced 2024-12-23 21:05:06 +01:00
d721e7ae7f
MOD: All necessary strings to match
24 lines
645 B
TypeScript
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>
|
|
);
|
|
}
|