MCPcopy Index your code
hub / github.com/tinyplex/tinybase / RelationshipView

Function RelationshipView

src/ui-react-inspector/RelationshipsView.tsx:13–40  ·  view source on GitHub ↗
({
  relationships,
  relationshipsId,
  relationshipId,
  s,
}: {
  readonly relationships?: Relationships | undefined;
  readonly relationshipsId?: Id;
  readonly relationshipId: Id;
} & StoreProp)

Source from the content-addressed store, hash-verified

11import {useEditable} from './editable.ts';
12
13const RelationshipView = ({
14 relationships,
15 relationshipsId,
16 relationshipId,
17 s,
18}: {
19 readonly relationships?: Relationships | undefined;
20 readonly relationshipsId?: Id;
21 readonly relationshipId: Id;
22} & StoreProp) => {
23 const uniqueId = getUniqueId('r', relationshipsId, relationshipId);
24 const [editable, handleEditable] = useEditable(uniqueId, s);
25 return (
26 <Details
27 uniqueId={uniqueId}
28 title={'Relationship: ' + relationshipId}
29 editable={editable}
30 handleEditable={handleEditable}
31 s={s}
32 >
33 <RelationshipInHtmlTable
34 relationshipId={relationshipId}
35 relationships={relationships}
36 editable={editable}
37 />
38 </Details>
39 );
40};
41
42export const RelationshipsView = ({
43 relationshipsId,

Callers

nothing calls this directly

Calls 2

getUniqueIdFunction · 0.90
useEditableFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…