mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-03-22 22:00:59 +00:00
9 lines
304 B
TypeScript
9 lines
304 B
TypeScript
import type { TorqueObject } from "../torqueScript";
|
|
import { useDatablockByName } from "../state/engineStore";
|
|
|
|
/** Look up a datablock by name from runtime state (reactive). */
|
|
export function useDatablock(
|
|
name: string | undefined,
|
|
): TorqueObject | undefined {
|
|
return useDatablockByName(name);
|
|
}
|