12 lines
428 B
TypeScript
12 lines
428 B
TypeScript
import type { ReactElement } from 'react';
|
|
import { useLocalSearchParams } from 'expo-router';
|
|
import { GroupInfoScreen } from '@/features/profile';
|
|
|
|
export default function GroupInfoRoute(): ReactElement | null {
|
|
const params = useLocalSearchParams<{ id: string }>();
|
|
const id = typeof params.id === 'string' ? params.id : null;
|
|
if (id === null) {
|
|
return null;
|
|
}
|
|
return <GroupInfoScreen conversationId={id} />;
|
|
}
|