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

Function RelationshipView

src/ui-solid-inspector/index.tsx:951–980  ·  view source on GitHub ↗
(
  props: {
    readonly relationships: any;
    readonly relationshipsId?: Id;
    readonly relationshipId: Id;
  } & StoreProp,
)

Source from the content-addressed store, hash-verified

949};
950
951const RelationshipView = (
952 props: {
953 readonly relationships: any;
954 readonly relationshipsId?: Id;
955 readonly relationshipId: Id;
956 } & StoreProp,
957) => {
958 const uniqueId = getUniqueId(
959 'r',
960 props.relationshipsId,
961 props.relationshipId,
962 );
963 const [editable, handleEditable] = useEditable(uniqueId, props.s);
964 return Details({
965 uniqueId,
966 title: 'Relationship: ' + props.relationshipId,
967 editable,
968 handleEditable,
969 s: props.s,
970 get children() {
971 return (
972 <RelationshipInHtmlTable
973 relationshipId={props.relationshipId}
974 relationships={props.relationships}
975 editable={editable()}
976 />
977 );
978 },
979 });
980};
981
982const RelationshipsView = (
983 props: {readonly relationshipsId?: Id} & StoreProp,

Callers

nothing calls this directly

Calls 3

getUniqueIdFunction · 0.90
useEditableFunction · 0.70
DetailsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…