feat: node rendering

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
TrèsAbhiandCopilot committed 2026-04-29 10:46:37 -05:00
1 parent ff56f1441e
commit 76dc9f0742
4 files changed
+36 -9

No files matched your search

@@ -1,4 +1,4 @@
import { useMemo } from "react";
import { useMemo, type ReactNode } from "react";
import type { CharacteristicOutput } from "../core/tankopedia/characteristics";
import {
characteristicsOrder,
@@ -28,7 +28,7 @@ export function useCharacteristicRenderer() {
function renderCharacteristic(
characteristic: CharacteristicOutput,
config: CharacteristicRenderConfig,
): string | null {
): ReactNode {
if (characteristic === null) return null;
if (config.render)