import { Metadata } from "next"
import Link from "next/link"
import { ArrowLeft } from "lucide-react"

import { Button } from "@/components/ui/button"
import ProgramForm from "@/components/program-form"

export const metadata: Metadata = {
  title: "New Program | TabataFit Admin",
  description: "Create a new workout program",
}

export default function NewProgramPage() {
  return (
    <div className="p-8 max-w-4xl mx-auto">
      <div className="mb-8">
        <Button variant="ghost" asChild className="mb-4 text-neutral-400 hover:text-white">
          <Link href="/programs">
            <ArrowLeft className="mr-2 h-4 w-4" />
            Back to Programs
          </Link>
        </Button>
        <h1 className="text-3xl font-bold text-white mb-2">Create New Program</h1>
        <p className="text-neutral-400">
          Fill in the details below to create a new workout program with 3 tabatas
        </p>
      </div>

      <div className="rounded-lg border border-neutral-800 bg-neutral-900 p-6">
        <ProgramForm mode="create" />
      </div>
    </div>
  )
}
