{t("builds:buildCard.info")}>}
+ buttonChildren={}
triggerClassName="minimal tiny build__small-text"
>
{description}
@@ -80,7 +95,7 @@ export function BuildCard({ build, owner, canEdit = false }: BuildProps) {
to={`new?buildId=${id}&userId=${user!.id}`}
data-cy="edit-build-button"
>
- {t("builds:buildCard.edit")}
+
),
canEdit && (
@@ -96,7 +111,7 @@ export function BuildCard({ build, owner, canEdit = false }: BuildProps) {
type="submit"
data-cy="delete-build-button"
>
- {t("common:actions.delete")}
+
),
diff --git a/app/components/icons/Info.tsx b/app/components/icons/Info.tsx
new file mode 100644
index 000000000..1b19b0a8b
--- /dev/null
+++ b/app/components/icons/Info.tsx
@@ -0,0 +1,16 @@
+export function InfoIcon({ className }: { className?: string }) {
+ return (
+
+ );
+}
diff --git a/app/components/layout/index.tsx b/app/components/layout/index.tsx
index b00ca0b56..b05710e8d 100644
--- a/app/components/layout/index.tsx
+++ b/app/components/layout/index.tsx
@@ -2,7 +2,7 @@ import { Link, useLocation } from "@remix-run/react";
import * as React from "react";
import { useTranslation } from "react-i18next";
import type { RootLoaderData } from "~/root";
-import { LOGO_PATH } from "~/utils/urls";
+import { LOGO_PATH, navIconUrl } from "~/utils/urls";
import { Image } from "../Image";
import { ColorModeToggle } from "./ColorModeToggle";
import { Footer } from "./Footer";
@@ -54,7 +54,7 @@ export const Layout = React.memo(function Layout({
{currentPagesNavItem && (
export const calendarReportWinnersPage = (eventId: number) =>
`/calendar/${eventId}/report-winners`;
export const articlePage = (slug: string) => `/a/${slug}`;
+export const analyzerPage = (args?: {
+ weaponId: MainWeaponId;
+ abilities: Ability[];
+}) =>
+ `/analyzer${
+ args
+ ? `?weapon=${args.weaponId}&build=${encodeURIComponent(
+ args.abilities.join(",")
+ )}`
+ : ""
+ }`;
export const badgeUrl = ({
code,
@@ -62,7 +74,8 @@ export const badgeUrl = ({
export const articlePreviewUrl = (slug: string) =>
`/img/article-previews/${slug}.png`;
-export const navIconUrl = (navItem: string) => `/img/layout/${navItem}`;
+export const navIconUrl = (navItem: typeof navItems[number]["name"]) =>
+ `/img/layout/${navItem}`;
export const gearImageUrl = (gearType: GearType, gearSplId: number) =>
`/img/gear/${gearType.toLowerCase()}/${gearSplId}`;
export const weaponCategoryUrl = (