'use client';

import * as React from 'react';
import { useRouter } from 'next/navigation';
import { useAuth } from '@/components/providers/auth-provider';

export default function UserPage() {
	const { user, isLoading } = useAuth();
	const router = useRouter();
	React.useEffect(() => {
		router.replace(`/dashboard/user/${user!.id}`);
	}, [user]);

	return null;
}
