import { useParams, Navigate } from 'react-router-dom';



const Mission = () => {

  // Получаем параметры из URL
  const { missionId } = useParams<{ missionId: string }>();

  // Если missionId нет, редиректим на /home
  if (!missionId) {
    return <Navigate to="/home" replace />;
  }


  return (
    <div className="w-full bg-liquid-background grid grid-cols-[250px,1fr,250px] divide-x-[1px] divide-liquid-lighter">

      <div className="bg-red-300 w-full h-full">
        {missionId}
      </div>
    </div>
  );
};

export default Mission;
