t2-mapper/src/components/useDatablock.ts

10 lines
304 B
TypeScript
Raw Normal View History

import type { TorqueObject } from "../torqueScript";
import { useDatablockByName } from "../state/engineStore";
2026-02-28 17:58:09 -08:00
/** Look up a datablock by name from runtime state (reactive). */
export function useDatablock(
name: string | undefined,
): TorqueObject | undefined {
2026-02-28 17:58:09 -08:00
return useDatablockByName(name);
}