rowboat/apps/rowboat/app/providers.tsx
2025-03-03 18:01:44 +05:30

15 lines
No EOL
383 B
TypeScript

// app/providers.tsx
'use client'
import { HeroUIProvider } from "@heroui/react"
import { useRouter } from 'next/navigation'
export function Providers({ className, children }: { className: string, children: React.ReactNode }) {
const router = useRouter();
return (
<HeroUIProvider className={className} navigate={router.push}>
{children}
</HeroUIProvider >
)
}