brunner56's picture
implement app
0bfe2e3
raw
history blame contribute delete
676 Bytes
'use client';
import { PAGE_TRANSITION } from '@/components/shared/page-transition';
import { cn } from '@/components/ui/core/styling';
import { motion } from 'framer-motion';
import React from 'react';
type PageWrapperProps = {
children?: React.ReactNode;
} & React.ComponentPropsWithoutRef<'div'>;
export function PageWrapper(props: PageWrapperProps) {
const { children, className, ...rest } = props;
return (
<div data-page-wrapper-container>
<motion.div
data-page-wrapper
{...PAGE_TRANSITION}
{...(rest as any)}
className={cn('z-[5] relative', className)}
>
{children}
</motion.div>
</div>
);
}