mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-28 07:09:50 +00:00
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:*
26 lines
682 B
TypeScript
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']}
|
|
/>
|
|
);
|
|
}
|