'use client'; import { useState } from 'react'; import { useRouter } from 'next/navigation'; import { Card, CardHeader, CardTitle, CardDescription, CardContent, Button, Input, ParticipantInput, } from '@/components/ui'; import { createMotivatorSession } from '@/actions/moving-motivators'; export default function NewMotivatorSessionPage() { const router = useRouter(); const [loading, setLoading] = useState(false); const [error, setError] = useState(null); async function handleSubmit(e: React.FormEvent) { e.preventDefault(); setError(null); setLoading(true); const formData = new FormData(e.currentTarget); const title = formData.get('title') as string; const participant = formData.get('participant') as string; if (!title || !participant) { setError('Veuillez remplir tous les champs'); setLoading(false); return; } const result = await createMotivatorSession({ title, participant }); if (!result.success) { setError(result.error || 'Une erreur est survenue'); setLoading(false); return; } router.push(`/motivators/${result.data?.id}`); } return (
🎯 Nouvelle Session Moving Motivators Créez une session pour explorer les motivations intrinsèques d'un collaborateur
{error && (
{error}
)}

Comment ça marche ?

  1. Classez les 10 cartes de motivation par ordre d'importance
  2. Évaluez l'influence positive ou négative de chaque motivation
  3. Découvrez le récapitulatif des motivations clés
); }