1
0
mirror of https://github.com/upscayl/upscayl.git synced 2025-01-27 00:13:45 +01:00

41 lines
1005 B
TypeScript
Raw Normal View History

import { newsAtom, showNewsModalAtom } from "@/atoms/newsAtom";
import { useAtomValue, useSetAtom } from "jotai";
2022-11-12 02:09:28 +05:30
import React from "react";
function Footer() {
const setShowNewsModal = useSetAtom(showNewsModalAtom);
const news = useAtomValue(newsAtom);
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">
{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"
target="_blank">
2022-11-12 02:09:28 +05:30
Upscayl
</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"
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;