1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-28 01:10:52 +01:00
upscayl/renderer/components/upscayl-tab/view/ResetButton.tsx

19 lines
481 B
TypeScript
Raw Normal View History

import { translationAtom } from "@/atoms/translations-atom";
import { useAtomValue } from "jotai";
2022-11-11 21:39:28 +01:00
import React from "react";
function ResetButton(props) {
const t = useAtomValue(translationAtom);
2022-11-11 21:39:28 +01:00
return (
<button
className="animate bg-gradient-blue absolute right-1 top-1 z-10 rounded-full px-4 py-2 text-white opacity-30 hover:opacity-100"
2022-11-11 21:39:28 +01:00
onClick={props.resetImagePaths}
>
{t("APP.INFOS.RESET")}
2022-11-11 21:39:28 +01:00
</button>
);
}
export default ResetButton;