22 lines
647 B
TypeScript
22 lines
647 B
TypeScript
'use client';
|
|
|
|
import { use, useEffect } from 'react';
|
|
import { FamilyGroupView } from '@/components/family/family-group-view';
|
|
import { useFamilyOverlay } from '@/components/family/family-overlay-provider';
|
|
import { IdShell } from '@/components/id/shell';
|
|
|
|
export default function FamilyGroupPage({ params }: { params: Promise<{ groupId: string }> }) {
|
|
const { groupId } = use(params);
|
|
const { setSelectedGroupId } = useFamilyOverlay();
|
|
|
|
useEffect(() => {
|
|
setSelectedGroupId(groupId);
|
|
}, [groupId, setSelectedGroupId]);
|
|
|
|
return (
|
|
<IdShell active="/family" wide>
|
|
<FamilyGroupView groupId={groupId} />
|
|
</IdShell>
|
|
);
|
|
}
|