'use client';

import PageContainer from '@/components/layout/page-container';
import { CreateTrainingForm } from '@/feactures/training/components/form';
import { useRouter } from 'next/navigation';

export default function NewTrainingPage() {
  const router = useRouter();

  return (
    // <PageContainer scrollable>
    <div className="px-6 pt-2 pb-6  flex-1 space-y-4">
      <CreateTrainingForm
        onSuccess={() => router.push('/dashboard/formulario')}
        onCancel={() => router.back()}
      />
    </div>
    // </PageContainer>
  );
}
