2024-01-15 19:19:25 +05:30
|
|
|
import { newsAtom, showNewsModalAtom } from "@/atoms/newsAtom";
|
2024-01-15 19:14:44 +05:30
|
|
|
import { useAtomValue, useSetAtom } from "jotai";
|
2022-11-12 02:09:28 +05:30
|
|
|
import React from "react";
|
|
|
|
|
|
|
|
function Footer() {
|
2024-01-15 19:14:44 +05:30
|
|
|
const setShowNewsModal = useSetAtom(showNewsModalAtom);
|
2024-01-15 19:19:25 +05:30
|
|
|
const news = useAtomValue(newsAtom);
|
2024-01-15 19:14:44 +05:30
|
|
|
|
2022-11-12 02:09:28 +05:30
|
|
|
return (
|
2023-04-12 18:55:24 +05:30
|
|
|
<div className="p-2 text-center text-xs text-base-content/50">
|
2024-01-15 19:19:25 +05:30
|
|
|
{news && !news?.data?.dontShow && (
|
|
|
|
<button
|
|
|
|
className="badge badge-neutral mb-2"
|
|
|
|
onClick={() => setShowNewsModal(true)}>
|
|
|
|
UPSCAYL NEWS
|
|
|
|
</button>
|
|
|
|
)}
|
2022-11-12 02:09:28 +05:30
|
|
|
<p>
|
2023-04-15 10:45:58 +05:30
|
|
|
Copyright © {new Date().getFullYear()} -{" "}
|
2022-11-12 02:09:28 +05:30
|
|
|
<a
|
|
|
|
className="font-bold"
|
|
|
|
href="https://github.com/upscayl/upscayl"
|
2023-04-16 08:09:38 +05:30
|
|
|
target="_blank">
|
2022-11-12 02:09:28 +05:30
|
|
|
Upscayl
|
2023-04-16 08:09:38 +05:30
|
|
|
</a>
|
2022-11-12 02:09:28 +05:30
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
By{" "}
|
|
|
|
<a
|
2023-08-10 15:14:44 +05:30
|
|
|
href="https://github.com/upscayl"
|
2022-11-12 02:09:28 +05:30
|
|
|
className="font-bold"
|
2023-04-16 08:09:38 +05:30
|
|
|
target="_blank">
|
2023-10-14 06:30:49 +05:30
|
|
|
The Upscayl Team
|
2022-11-12 02:09:28 +05:30
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Footer;
|