From 06e849c9733a1159a687e48dba650eb04aeff278 Mon Sep 17 00:00:00 2001
From: Nayam Amarshe <25067102+NayamAmarshe@users.noreply.github.com>
Date: Fri, 1 Nov 2024 18:21:52 +0530
Subject: [PATCH] Update case
---
renderer/components/footer.tsx | 45 ++++++++++++++++++++++++++++++++++
renderer/components/header.tsx | 32 ++++++++++++++++++++++++
renderer/components/tabs.tsx | 35 ++++++++++++++++++++++++++
3 files changed, 112 insertions(+)
create mode 100644 renderer/components/footer.tsx
create mode 100644 renderer/components/header.tsx
create mode 100644 renderer/components/tabs.tsx
diff --git a/renderer/components/footer.tsx b/renderer/components/footer.tsx
new file mode 100644
index 0000000..664456e
--- /dev/null
+++ b/renderer/components/footer.tsx
@@ -0,0 +1,45 @@
+import { newsAtom, showNewsModalAtom } from "@/atoms/news-atom";
+import { translationAtom } from "@/atoms/translations-atom";
+import { useAtomValue, useSetAtom } from "jotai";
+import React from "react";
+
+function Footer() {
+ const setShowNewsModal = useSetAtom(showNewsModalAtom);
+ const news = useAtomValue(newsAtom);
+ const t = useAtomValue(translationAtom);
+
+ return (
+
+ {news && !news?.data?.dontShow && (
+
+ )}
+
+ {t("FOOTER.COPYRIGHT")} {new Date().getFullYear()} -{" "}
+
+ {t("TITLE")}
+
+
+
+ {t("FOOTER.TITLE")}
+
+ {t("FOOTER.LINK_TITLE")}
+
+
+
+ );
+}
+
+export default Footer;
diff --git a/renderer/components/header.tsx b/renderer/components/header.tsx
new file mode 100644
index 0000000..71c8047
--- /dev/null
+++ b/renderer/components/header.tsx
@@ -0,0 +1,32 @@
+import { FEATURE_FLAGS } from "@common/feature-flags";
+import React from "react";
+import UpscaylSVGLogo from "@/components/icons/upscayl-logo-svg";
+import { useAtomValue } from "jotai";
+import { translationAtom } from "@/atoms/translations-atom";
+
+export default function Header({ version }: { version: string }) {
+ const t = useAtomValue(translationAtom);
+
+ return (
+
+
+
+
+
+ {t("TITLE")}{" "}
+
+ {version} {FEATURE_FLAGS.APP_STORE_BUILD && "Mac"}
+
+
+
{t("HEADER.DESCRIPTION")}
+
+
+
+ );
+}
diff --git a/renderer/components/tabs.tsx b/renderer/components/tabs.tsx
new file mode 100644
index 0000000..088529a
--- /dev/null
+++ b/renderer/components/tabs.tsx
@@ -0,0 +1,35 @@
+import { translationAtom } from "@/atoms/translations-atom";
+import { useAtomValue } from "jotai";
+import React from "react";
+
+type TabsProps = {
+ selectedTab: number;
+ setSelectedTab: (tab: number) => void;
+};
+
+const Tabs = ({ selectedTab, setSelectedTab }: TabsProps) => {
+ const t = useAtomValue(translationAtom);
+
+ return (
+
+ );
+};
+
+export default Tabs;