Files
zeekayandHanzo Dev e449c3228d Import @hanzo/ui where @hanzo/ui puts things
The lockfile was frozen at @hanzo/ui 8.27.5 against a declared ^8.27.7, so no
install could reproduce this tree and none of these imports had been checked
against the library in a long time. Reconciling it surfaced four import paths
that @hanzo/ui has never published: ./sonner, ./tooltip, ./accordion and
./drawer. Every one of those components is a named export of the package root
(and of @hanzo/ui/primitives/<Name>), so the call sites say so.

TooltipProvider is gui's TooltipGroup, which asks for its delay rather than
defaulting to one; it gets radix's old 700ms. toast is sonner-shaped —
toast(title, { description }) — which leaves hooks/use-toast.ts, a copy of
shadcn's radix-toast reducer whose ToastProps and ToastActionElement the package
never exported, with nothing to do.

5 diagnostics before and after on typescript 6.0.3.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-17 01:08:18 -07:00

29 lines
713 B
TypeScript

'use client'
import dynamic from 'next/dynamic'
import { Toaster, TooltipProvider } from '@hanzo/ui'
import Navbar from '@/components/Navbar'
import TopBanner from '@/components/TopBanner'
import Footer from '@/components/Footer'
const GlobalChatWidget = dynamic(() => import('@/components/GlobalChatWidget'), { ssr: false })
export default function MarketingShell({
children,
}: {
children: React.ReactNode
}) {
return (
<TooltipProvider delay={700}>
<Toaster />
<div className="min-h-screen bg-background text-foreground">
<TopBanner />
<Navbar />
<main>{children}</main>
<Footer />
<GlobalChatWidget />
</div>
</TooltipProvider>
)
}