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

Function weightHref

packages/web/src/render.tsx:1226–1231  ·  view source on GitHub ↗
(metadata: CatalogModel)

Source from the content-addressed store, hash-verified

1224}
1225
1226function weightHref(metadata: CatalogModel) {
1227 return (
1228 metadata.weights?.[0]?.url ??
1229 metadata.links?.find((link) => link.type === "weights")?.url
1230 );
1231}
1232
1233function TableSection(props: {
1234 id?: string;

Callers 1

WeightsValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected