- Change from [...shareId] catch-all to [slug]/[[...path]] structure - Layout with ShareProvider now persists across sub-route navigation - Add slug to ShareData context (separate from shareId UUID) - Links now use slug instead of UUID for proper routing - Remove unused ShareFooter and ShareHeader files Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
14 lines
291 B
TypeScript
14 lines
291 B
TypeScript
import { ShareProvider } from '@/app/share/ShareProvider';
|
|
|
|
export default async function ({
|
|
params,
|
|
children,
|
|
}: {
|
|
params: Promise<{ slug: string }>;
|
|
children: React.ReactNode;
|
|
}) {
|
|
const { slug } = await params;
|
|
|
|
return <ShareProvider slug={slug}>{children}</ShareProvider>;
|
|
}
|