1
0
mirror of https://github.com/upscayl/upscayl.git synced 2025-01-24 07:04:07 +01:00

33 lines
1.1 KiB
TypeScript
Raw Normal View History

import { FEATURE_FLAGS } from "@common/feature-flags";
2022-11-12 02:09:28 +05:30
import React from "react";
import UpscaylSVGLogo from "@/components/icons/upscayl-logo-svg";
import { useAtomValue } from "jotai";
import { translationAtom } from "@/atoms/translations-atom";
2022-11-12 02:09:28 +05:30
2023-03-12 13:29:07 +05:30
export default function Header({ version }: { version: string }) {
const t = useAtomValue(translationAtom);
2022-11-12 02:09:28 +05:30
return (
<a
href="https://github.com/upscayl/upscayl"
target="_blank"
2023-08-30 10:24:16 +05:30
className={`outline-none focus-visible:ring-2`}
2023-09-03 14:46:48 +05:30
data-tooltip-id="tooltip"
data-tooltip-content={t("HEADER.GITHUB_BUTTON_TITLE")}
2024-04-24 16:38:27 +05:30
>
2022-11-12 02:09:28 +05:30
<div className="flex items-center gap-3 px-5 py-5">
<UpscaylSVGLogo className="inline-block h-14 w-14" />
2022-11-12 02:09:28 +05:30
<div className="flex flex-col justify-center">
2023-03-12 13:29:07 +05:30
<h1 className="text-3xl font-bold">
{t("TITLE")}{" "}
2024-01-19 13:25:32 +05:30
<span className="text-xs">
{version} {FEATURE_FLAGS.APP_STORE_BUILD && "Mac"}
2024-01-19 13:25:32 +05:30
</span>
2023-03-12 13:29:07 +05:30
</h1>
<p className="">{t("HEADER.DESCRIPTION")}</p>
2022-11-12 02:09:28 +05:30
</div>
</div>
</a>
);
}