MCPcopy Create free account
hub / github.com/triggerdotdev/jsonhero-web / PropertiesValue

Function PropertiesValue

app/components/Properties/PropertiesValue.tsx:6–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import { PropertiesString } from "./PropertiesString";
5
6export function PropertiesValue() {
7 const info = useSelectedInfo();
8
9 if (!info) {
10 return <></>;
11 }
12
13 switch (info.name) {
14 case "float":
15 return <PropertiesFloat type={info} />;
16 case "int":
17 return <PropertiesInt type={info} />;
18 case "string":
19 return <PropertiesString type={info} />;
20 default:
21 return <></>;
22 }
23}

Callers

nothing calls this directly

Calls 1

useSelectedInfoFunction · 0.90

Tested by

no test coverage detected