---
import {
Cross1Icon,
DiscordLogoIcon,
GearIcon,
HamburgerMenuIcon,
} from "@radix-ui/react-icons";
import { Box, Code, Flex, IconButton, Link } from "@radix-ui/themes";
import { resolveBranchName } from "../core/blitzkit/branches";
import { getStrings } from "../core/i18n/getStrings";
import { Var } from "../core/radix/var";
import { LinkI18n } from "./LinkI18n";
import { tools } from "../constants/tools";
import { NavbarAccount } from "./NavbarAccount";
export interface Props {
integrated?: boolean;
locale: string;
}
const { integrated = false } = Astro.props;
const toolsFiltered = Object.entries(tools).filter(([, tool]) => !tool.href);
const { locale } = Astro.props;
const branchName = resolveBranchName(locale);
const isBranchNamed = branchName !== undefined;
const strings = getStrings(locale);
---
BlitzKit
{
isBranchNamed && (
{branchName}
)
}
{
toolsFiltered.map(([id, tool]) => {
const selected = Astro.url.pathname.includes(
`/${tool.path ?? id}`,
);
const toolStrings =
strings.website.tools[
(tool.strings ?? id) as keyof typeof strings.website.tools
];
return (
{toolStrings.name}
);
})
}
{
toolsFiltered.map(([id, tool]) => {
const toolStrings =
strings.website.tools[
(tool.strings ?? id) as keyof typeof strings.website.tools
];
return (
{toolStrings.name}
);
})
}