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

Function SliceView

src/ui-solid-inspector/index.tsx:799–831  ·  view source on GitHub ↗
(
  props: {
    readonly indexes: any;
    readonly indexesId?: Id;
    readonly indexId: Id;
    readonly sliceId: Id;
  } & StoreProp,
)

Source from the content-addressed store, hash-verified

797};
798
799const SliceView = (
800 props: {
801 readonly indexes: any;
802 readonly indexesId?: Id;
803 readonly indexId: Id;
804 readonly sliceId: Id;
805 } & StoreProp,
806) => {
807 const uniqueId = getUniqueId(
808 'i',
809 props.indexesId,
810 props.indexId,
811 props.sliceId,
812 );
813 const [editable, handleEditable] = useEditable(uniqueId, props.s);
814 return Details({
815 uniqueId,
816 title: 'Slice: ' + props.sliceId,
817 editable,
818 handleEditable,
819 s: props.s,
820 get children() {
821 return (
822 <SliceInHtmlTable
823 sliceId={props.sliceId}
824 indexId={props.indexId}
825 indexes={props.indexes}
826 editable={editable()}
827 />
828 );
829 },
830 });
831};
832
833const IndexView = (
834 props: {

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…