import SiteBreadcrumb from "@/components/site-breadcrumb";
import { Button } from "@/components/ui/button";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
import { UploadIcon } from "lucide-react";
import PressConferenceTable from "../press-conference/components/presscon-table";
import EventTable from "./components/event-table";
import { Link } from "@/components/navigation";
import TicketingTable from "../../ticketing/components/table";

const EventPage = async () => {
  return (
    <div>
      <SiteBreadcrumb />
      <div className="space-y-4">
        <Card>
          <CardHeader className="border-b border-solid border-default-200 mb-6">
            <CardTitle>
              <div className="flex items-center">
                <div className="flex-1 text-xl font-medium text-default-900">
                  Jadwal Event
                </div>
                <div className="flex-none">
                  <Link href={"/schedule/event/create"}>
                    <Button color="primary" className="text-white">
                      <UploadIcon />
                      Buat Jadwal
                    </Button>
                  </Link>
                </div>
              </div>
            </CardTitle>
          </CardHeader>
          <CardContent className="p-0">
            <EventTable />
          </CardContent>
        </Card>
      </div>
    </div>
  );
};

export default EventPage;
