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

const PressReleasePage = 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 Pers Rilis
            </div>
            <div>
              <Link href={"/schedule/press-release/create"}>
                <Button color="primary" className="text-white">
                  <UploadIcon />
                  Buat Jadwal
                </Button>
              </Link>
            </div>
          </div>
        </Card>
        <Card>
          <CardContent className="p-0">
            <PressReleaseTable />
          </CardContent>
        </Card>
      </div>
    </div>
  );
};

export default PressReleasePage;
