mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-28 01:46:23 +02:00
15 lines
No EOL
383 B
TypeScript
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 >
|
|
)
|
|
} |