import type { ReactElement } from 'react'; import { useLocalSearchParams } from 'expo-router'; import { ProfileScreen } from '@/features/profile'; export default function ProfileRoute(): ReactElement | null { const params = useLocalSearchParams<{ username: string }>(); const username = typeof params.username === 'string' ? params.username : null; if (username === null || username.length === 0) { return null; } return ; }