Spaces:
Running
Running
File size: 942 Bytes
c47ec10 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | "use client";
import { ThemeToggle } from "@/components/theme-toggle";
import { VersionReleaseDialog } from "@/components/version-release-dialog";
import { cn } from "@/lib/utils";
export function HeaderActions({ className, showGithubText = true }: { className?: string; showGithubText?: boolean }) {
return (
<div className={cn("flex items-center gap-2 sm:gap-3", className)}>
<ThemeToggle />
<a
href="https://github.com/basketikun/chatgpt2api"
target="_blank"
rel="noreferrer"
className="inline-flex h-8 items-center justify-center gap-1.5 text-sm text-stone-500 transition hover:text-stone-900 dark:text-stone-300 dark:hover:text-white"
aria-label="GitHub repository"
>
<img src="/github.svg" alt="" className="size-4" />
{showGithubText ? <span className="hidden sm:inline">GitHub</span> : null}
</a>
<VersionReleaseDialog />
</div>
);
}
|