2024-10-04 14:45:54 +05:30
|
|
|
import { FEATURE_FLAGS } from "@common/feature-flags";
|
2022-11-12 02:09:28 +05:30
|
|
|
import React from "react";
|
2024-10-04 14:45:54 +05:30
|
|
|
import UpscaylSVGLogo from "@/components/icons/upscayl-logo-svg";
|
2024-09-01 17:31:45 +05:30
|
|
|
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 }) {
|
2024-09-01 17:31:45 +05:30
|
|
|
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"
|
2024-09-03 13:04:58 +05:30
|
|
|
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">
|
2024-10-04 14:45:54 +05:30
|
|
|
<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">
|
2024-09-05 10:21:30 +05:30
|
|
|
{t("TITLE")}{" "}
|
2024-01-19 13:25:32 +05:30
|
|
|
<span className="text-xs">
|
2024-10-04 14:45:54 +05:30
|
|
|
{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>
|
2024-09-03 13:04:58 +05:30
|
|
|
<p className="">{t("HEADER.DESCRIPTION")}</p>
|
2022-11-12 02:09:28 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
);
|
|
|
|
}
|