Files
IdP/apps/frontend/app/family/[groupId]/page.tsx
2026-06-25 16:01:41 +03:00

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>
);
}