'use client';

import FeaturesPage from '@/components/FeaturesPage';
import { useRouter } from 'next/navigation';
import { useSession } from 'next-auth/react';

export default function Features() {
    const router = useRouter();
    const { data: session } = useSession();

    return (
        <FeaturesPage
            onBack={() => router.push(session ? '/dashboard' : '/')}
        />
    );
}
