MCPcopy Create free account
hub / github.com/VienLi/CcView / TableQuery

Function TableQuery

src/components/Query/QueryFactory.tsx:46–58  ·  view source on GitHub ↗
(props: TableQueryProp)

Source from the content-addressed store, hash-verified

44}
45
46export default function TableQuery(props: TableQueryProp) {
47 const { query = {}, config, setQuery, eventMap = {}} = props;
48 const fromChild = config.layout.map((rowConfig, index) => {
49 return genQueryRow(eventMap, rowConfig, query, setQuery, `query-row-${index}`);
50 });
51 return (
52 <div className='m-h-24 px-4 flex flex-row flex-wrap'>
53 {
54 fromChild
55 }
56 </div>
57 );
58}

Callers

nothing calls this directly

Calls 1

genQueryRowFunction · 0.85

Tested by

no test coverage detected