2026-08-18 09:50:52 +07:00
|
|
|
import { cn } from "@/lib/utils";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Wraps a view's root so the whole panel stack rises + settles on mount.
|
|
|
|
|
* The animation is disabled under prefers-reduced-motion via globals.css.
|
|
|
|
|
*/
|
|
|
|
|
export function PageTransition({
|
|
|
|
|
children,
|
|
|
|
|
className,
|
|
|
|
|
}: {
|
|
|
|
|
children: React.ReactNode;
|
|
|
|
|
className?: string;
|
|
|
|
|
}) {
|
2026-08-24 16:15:55 +07:00
|
|
|
return (
|
|
|
|
|
<div className={cn("animate-fade-up h-full", className)}>{children}</div>
|
|
|
|
|
);
|
2026-08-18 09:50:52 +07:00
|
|
|
}
|