seedling/source/ui/src/providers/Skeleton.tsx
Roman Jaroš 616205fe73
All checks were successful
forgejo/Procyon/seedling/pipeline/pr-master This commit looks good
forgejo/Procyon/seedling/pipeline/head This commit looks good
Replace UI module with Next.js
2023-12-29 15:09:30 +00:00

28 lines
535 B
TypeScript

// @ts-nocheck
'use client';
import { useRouter } from 'next/navigation';
import { Skeleton } from '@procyon/components/Skeleton';
export function SkeletonProvider({ children }: Readonly<{ children: React.ReactNode }>) {
const router = useRouter();
return (
<Skeleton
onHref={(path) => router.push(path as string)}
items={{
logo: <>App</>,
top: [
{
label: 'Home',
href: '/',
},
{
label: 'Next page',
href: '/next-page',
},
],
}}>
{children}
</Skeleton>
);
}