MCPcopy
hub / github.com/anomalyco/models.dev / TableSection

Function TableSection

packages/web/src/render.tsx:1233–1253  ·  view source on GitHub ↗
(props: {
  id?: string;
  title: string;
  count: number;
  columns: number;
  hideHeading?: boolean;
  children: unknown;
})

Source from the content-addressed store, hash-verified

1231}
1232
1233function TableSection(props: {
1234 id?: string;
1235 title: string;
1236 count: number;
1237 columns: number;
1238 hideHeading?: boolean;
1239 children: unknown;
1240}) {
1241 return (
1242 <section class="table-section" id={props.id}>
1243 {!props.hideHeading && (
1244 <div class="section-heading">
1245 <h3>{props.title}</h3>
1246 <span>{formatNumber(props.count)}</span>
1247 </div>
1248 )}
1249 <div class="table-wrap">{props.children}</div>
1250 <p class="empty-message">No rows match the current search.</p>
1251 </section>
1252 );
1253}
1254
1255function SortableTh(props: { type?: "text" | "number"; children: unknown }) {
1256 return (

Callers

nothing calls this directly

Calls 1

formatNumberFunction · 0.70

Tested by

no test coverage detected