mirror of
https://github.com/upscayl/upscayl.git
synced 2024-12-19 02:45:54 +01:00
24 lines
637 B
TypeScript
24 lines
637 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("APP.INFOS.RESET_SETTINGS.TITLE")}
|
|
</p>
|
|
<button
|
|
className="btn btn-primary"
|
|
onClick={async () => {
|
|
localStorage.clear();
|
|
alert(t("APP.INFOS.RESET_SETTINGS.ON_RESET"));
|
|
}}
|
|
>
|
|
{t("APP.INFOS.RESET_SETTINGS.TITLE")}
|
|
</button>
|
|
</div>
|
|
);
|
|
}
|