Files
docs/apps/zen-docs/app/(home)/ModelLibrary.tsx
zeekay 7a36f0b4b5 chore(zen-docs): switch to @zenlm/ui and @zenlm/models workspace packages
Replace cross-repo @hanzo/ui/models and @hanzo/zen-models references with
self-contained workspace packages @zenlm/ui and @zenlm/models. This eliminates
the CI ENOENT failure caused by the file:../../../ui/pkg/ui cross-repo path.

- components/ModelTable.tsx: @hanzo/ui/models → @zenlm/ui
- components/ZenEnso.tsx: @hanzo/ui/models → @zenlm/ui
- app/(home)/ModelLibrary.tsx: @hanzo/ui/models + @hanzo/zen-models → @zenlm/ui + @zenlm/models
- app/(home)/page.tsx: @hanzo/zen-models → @zenlm/models
- package.json: remove @hanzo/ui, @hanzo/zen-models; add @zenlm/ui, @zenlm/models workspace:*
2026-03-01 15:31:20 -08:00

26 lines
682 B
TypeScript

'use client';
import { useRouter } from 'next/navigation';
import { ModelLibrary as SharedModelLibrary } from '@zenlm/ui';
import { allModels, families } from '@zenlm/models';
/**
* ModelLibrary — renders the full model card grid on the zen-docs home page.
* Data: @zenlm/models (SSOT)
* UI: @zenlm/ui (shared components)
*/
export default function ModelLibrary() {
const router = useRouter();
return (
<SharedModelLibrary
allModels={allModels}
families={families}
linkPrefix="/docs/models/"
chatBaseUrl="https://hanzo.chat"
requestAccessUrl="https://hanzo.ai/contact"
featuredIds={['zen4-max', 'zen-max', 'zen5']}
/>
);
}