- Remove external next-view-transitions dependency - Use Next.js 16 native navigation and Safari 18+ native View Transition API - Add ViewTransitionProvider for minimal wrapping with Safari 18+ detection - Updated all Link imports from external package to next/link - Removed link-wrapper.tsx and view-transitions-wrapper.tsx This resolves Safari compatibility issues while maintaining transitions on modern browsers.
15 lines
340 B
TypeScript
15 lines
340 B
TypeScript
'use client';
|
|
|
|
import { ViewTransitionProvider } from '@/components/view-transition-provider';
|
|
import Template from '@/app/template';
|
|
|
|
export function AppWrapper({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<ViewTransitionProvider>
|
|
<Template>
|
|
{children}
|
|
</Template>
|
|
</ViewTransitionProvider>
|
|
);
|
|
}
|