import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui/card";

const AGENT_VERSION = "0.3.0";
const AGENT_BIN_NAME = "studioE5-agent";

export const dynamic = "force-dynamic";

export default function DownloadPage() {
  return (
    <div className="space-y-6">
      <h1 className="text-3xl font-bold">Téléchargements Agent</h1>
      <p className="text-sm text-muted-foreground">Version actuelle : <strong>{AGENT_VERSION}</strong></p>
      <div className="grid grid-cols-1 md:grid-cols-3 gap-4">
        <Card>
          <CardHeader>
            <CardTitle>Windows</CardTitle>
          </CardHeader>
          <CardContent>
            <p className="text-sm text-muted-foreground mb-4">Agent studioE5 pour Windows (64 bits)</p>
            <a href={`/${AGENT_BIN_NAME}-v${AGENT_VERSION}.exe`} download className="inline-flex items-center justify-center rounded-md text-sm font-medium bg-primary text-primary-foreground hover:bg-primary/90 h-10 px-4 py-2 w-full">Télécharger (.exe)</a>
          </CardContent>
        </Card>
      </div>
    </div>
  );
}
