1
0
mirror of https://github.com/upscayl/upscayl.git synced 2025-01-09 21:21:36 +01:00

19 lines
488 B
TypeScript
Raw Normal View History

import { translationAtom } from "@/atoms/translations-atom";
import { useAtomValue } from "jotai";
2022-11-12 02:09:28 +05:30
import React from "react";
function ResetButton(props) {
const t = useAtomValue(translationAtom);
2022-11-12 02:09:28 +05:30
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-12 02:09:28 +05:30
onClick={props.resetImagePaths}
>
{t("APP.RESET_BUTTON_TITLE")}
2022-11-12 02:09:28 +05:30
</button>
);
}
export default ResetButton;