1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-12-21 20:05:53 +01:00
upscayl/renderer/components/Footer.tsx

41 lines
1005 B
TypeScript
Raw Normal View History

import { newsAtom, showNewsModalAtom } from "@/atoms/newsAtom";
import { useAtomValue, useSetAtom } from "jotai";
2022-11-11 21:39:28 +01:00
import React from "react";
function Footer() {
const setShowNewsModal = useSetAtom(showNewsModalAtom);
const news = useAtomValue(newsAtom);
2022-11-11 21:39:28 +01:00
return (
2023-04-12 15:25:24 +02:00
<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-11 21:39:28 +01:00
<p>
2023-04-15 07:15:58 +02:00
Copyright © {new Date().getFullYear()} -{" "}
2022-11-11 21:39:28 +01:00
<a
className="font-bold"
href="https://github.com/upscayl/upscayl"
target="_blank">
2022-11-11 21:39:28 +01:00
Upscayl
</a>
2022-11-11 21:39:28 +01:00
</p>
<p>
By{" "}
<a
2023-08-10 11:44:44 +02:00
href="https://github.com/upscayl"
2022-11-11 21:39:28 +01:00
className="font-bold"
target="_blank">
2023-10-14 03:00:49 +02:00
The Upscayl Team
2022-11-11 21:39:28 +01:00
</a>
</p>
</div>
);
}
export default Footer;