import { useQuestion } from "@/api"; import Question from "@/components/question"; import Content from "@/components/ui/content"; import { Skeleton } from "@/components/ui/skeleton"; import { Stack, useLocalSearchParams } from "expo-router"; const QuestionScreen = () => { const { id: idParam } = useLocalSearchParams<{ id: string }>(); const id = +idParam; const { data, isLoading } = useQuestion(id); return ( <> {isLoading && } { data && } ) } export default QuestionScreen;