import React from 'react';
import { useParams, useNavigate } from 'react-router-dom';
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
import { Button } from '@/components/ui/button';
import { Badge } from '@/components/ui/badge';
import { ArrowLeft, Container } from 'lucide-react';

export function JobDetailsPage() {
  const { jobName, namespaceName } = useParams<{
    jobName: string;
    namespaceName: string;
  }>();
  const navigate = useNavigate();

  return (
    <div className="space-y-6">
      {/* Header */}
      <div className="flex items-center justify-between">
        <div className="flex items-center space-x-4">
          <Button variant="ghost" size="icon" onClick={() => navigate(-1)}>
            <ArrowLeft className="h-4 w-4" />
          </Button>
          <div>
            <h1 className="text-3xl font-bold text-foreground flex items-center">
              <Container className="h-8 w-8 mr-3 text-blue-600" />
              {jobName}
            </h1>
            <p className="text-muted-foreground">
              Job no namespace <Badge variant="outline">{namespaceName}</Badge>
            </p>
          </div>
        </div>
      </div>

      {/* Placeholder content */}
      <Card>
        <CardHeader>
          <CardTitle>Job Details - Em Desenvolvimento</CardTitle>
        </CardHeader>
        <CardContent>
          <p>Esta página está sendo desenvolvida.</p>
          <p>Job: {jobName}</p>
          <p>Namespace: {namespaceName}</p>
        </CardContent>
      </Card>
    </div>
  );
}
