import { useState } from 'react'; import { useLocation, useNavigate } from 'react-router-dom'; import { AllowNotification } from '@app/auth/components/features/allowNotification'; import { Circle } from '@app/auth/components/features/enableCircle'; import { OutboxModel } from '@app/auth/components/features/enableOutbox'; import { FavoriteHashtag } from '@app/auth/components/features/favoriteHashtag'; import { FollowList } from '@app/auth/components/features/followList'; import { SuggestFollow } from '@app/auth/components/features/suggestFollow'; import { LoaderIcon } from '@shared/icons'; export function OnboardingListScreen() { const { state } = useLocation(); const { newuser }: { newuser: boolean } = state; const [loading, setLoading] = useState(false); const navigate = useNavigate(); const completed = () => { setLoading(true); const timeout = setTimeout(() => setLoading(false), 200); clearTimeout(timeout); navigate('/'); }; return (