import SiteBreadcrumb from "@/components/site-breadcrumb";
import { Button } from "@/components/ui/button";
import { Card, CardContent } from "@/components/ui/card";
import PressConferenceTable from "./table-presscon/presscon-table";
import { UploadIcon } from "lucide-react";
import { Link } from "@/components/navigation";

const PressConferencePage = async () => {
  return (
    <div>
      <SiteBreadcrumb />
      <div className="space-y-4">
        <Card className="py-4 px-3">
          <div className="flex flex-row justify-between items-center">
            <div className="flex-1 text-xl font-medium text-default-900">
              Jadwal Konferensi Pers
            </div>
            <div>
              <Link href={"/schedule/press-conference/create"}>
                <Button color="primary" className="text-white">
                  <UploadIcon />
                  Buat Jadwal
                </Button>
              </Link>
            </div>
          </div>
        </Card>
        <Card>
          <CardContent className="p-0">
            <PressConferenceTable />
          </CardContent>
        </Card>
      </div>
    </div>
  );
};

export default PressConferencePage;
