src/components/AST/Viz.js
// This is the overhead component for objects and arrays in the AST object.
This is the overhead component for objects and arrays in the AST object.
This is the overhead component for objects and arrays in the AST object .
function Composite({ k, ast, cursor, setPos, ...other }) {
  return !Array.isArray(ast) ? (
    <CompositeObj k={k} obj={ast} cursor={cursor} setPos={setPos} {...other} />
  ) : (
    <CompositeArr k={k} arr={ast} cursor={cursor} setPos={setPos} />
  );
}
function Composite ( { k , ast , cursor , setPos , ... other } ) { return ! Array . isArray ( ast ) ? ( < CompositeObj k = { k } obj = { ast } cursor = { cursor } setPos = { setPos } { ... other } / > ) : ( < CompositeArr k = { k } arr = { ast } cursor = { cursor } setPos = { setPos } / > ) ; }
This is the overhead component for objects and arrays in the AST object.
This is the overhead component for objects and arrays in the AST object .