diff --git a/app/features/map-planner/components/Planner.tsx b/app/features/map-planner/components/Planner.tsx index be35ffa63..fdfe3ccfc 100644 --- a/app/features/map-planner/components/Planner.tsx +++ b/app/features/map-planner/components/Planner.tsx @@ -31,7 +31,7 @@ const BLUEPRINTS_AVAILABLE: Partial>> = { }; export default function Planner() { - const { t } = useTranslation(["common", "weapons"]); + const { t } = useTranslation(["common"]); const { i18n } = useTranslation(); const appRef = React.useRef(); const app = appRef.current!; @@ -126,25 +126,7 @@ export default function Planner() { return ( <> -
- {mainWeaponIds.map((weaponId) => { - return ( - - ); - })} -
+
{t("common:plans.poweredBy", { name: "tldraw" })} @@ -155,6 +137,35 @@ export default function Planner() { ); } +function WeaponImageSelector({ + handleAddWeapon, +}: { + handleAddWeapon: (weaponId: MainWeaponId) => void; +}) { + const { t } = useTranslation(["weapons"]); + return ( +
+ {mainWeaponIds.map((weaponId) => { + return ( + + ); + })} +
+ ); +} + function StageBackgroundSelector({ onAddBackground, }: {