2024-09-01 14:01:45 +02:00
|
|
|
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) {
|
2024-09-01 14:01:45 +02:00
|
|
|
const t = useAtomValue(translationAtom);
|
|
|
|
|
2022-11-11 21:39:28 +01:00
|
|
|
return (
|
|
|
|
<button
|
2024-09-01 14:01:45 +02:00
|
|
|
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}
|
|
|
|
>
|
2024-09-01 14:01:45 +02:00
|
|
|
{t("APP.INFOS.RESET")}
|
2022-11-11 21:39:28 +01:00
|
|
|
</button>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ResetButton;
|