MCPcopy Index your code
hub / github.com/anomalyco/models.dev / LabsPage

Function LabsPage

packages/web/src/render.tsx:781–812  ·  view source on GitHub ↗
(props: { labs: LabEntry[] })

Source from the content-addressed store, hash-verified

779}
780
781function LabsPage(props: { labs: LabEntry[] }) {
782 return (
783 <TableSection title="Labs" count={props.labs.length} columns={5} hideHeading>
784 <table data-enhanced-table>
785 <thead>
786 <tr>
787 <SortableTh>Lab</SortableTh>
788 <SortableTh>Description</SortableTh>
789 <SortableTh type="number">Models</SortableTh>
790 <SortableTh type="number">Providers</SortableTh>
791 <SortableTh>Last Updated</SortableTh>
792 </tr>
793 </thead>
794 <tbody>
795 {props.labs.map((lab) => (
796 <tr data-search={`${lab.name} ${lab.description ?? ""} ${lab.id} ${lab.families.join(" ")}`}>
797 <td data-sort={lab.name}>
798 <LabLink labId={lab.id} labName={lab.name} />
799 <span class="subtle mono">{lab.id}</span>
800 </td>
801 <td>{lab.description ?? "-"}</td>
802 <td data-sort={String(lab.models.length)}>{lab.models.length}</td>
803 <td data-sort={String(lab.providerCount)}>{lab.providerCount}</td>
804 <td data-sort={sortDate(lab.lastUpdated)}>{lab.lastUpdated ?? "-"}</td>
805 </tr>
806 ))}
807 <EmptyRow columns={5} />
808 </tbody>
809 </table>
810 </TableSection>
811 );
812}
813
814function ModelPage(props: { model: ModelEntry }) {
815 const { model } = props;

Callers

nothing calls this directly

Calls 1

sortDateFunction · 0.85

Tested by

no test coverage detected