"use client";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
import SiteBreadcrumb from "@/components/site-breadcrumb";
import { Link, UploadIcon } from "lucide-react";
import { Button } from "@/components/ui/button";
import { Icon } from "@iconify/react/dist/iconify.js";
import TableAudio from "./components/table-audio";
import TableVideo from "../audio-visual/components/table-video";

const ReactTableAudioPage = () => {
  return (
    <div>
      <SiteBreadcrumb />
      <div className="space-y-4">
        <Card className="py-4 px-3">
          <div className="flex flex-row justify-between items-center px-5">
            <div className="flex flex-row items-center text-xl font-medium text-default-900 gap-2">
              <div>
                <Icon icon="icon-park-outline:check-one" />
              </div>
              <div>
                <p>
                  0 <span className="text-red-500">Rata - rata :0</span>
                </p>
                <p className="text-sm">Hasil Unggah disetujui hari ini</p>
              </div>
            </div>
            <div className="flex flex-row items-center text-xl font-medium text-default-900 gap-2">
              <div>
                <Icon icon="material-symbols:settings-backup-restore-rounded" />
              </div>
              <div>
                <p>
                  0 <span className="text-red-500">Rata - rata :0</span>
                </p>
                <p className="text-sm">Hasil Unggah direvisi hari ini</p>
              </div>
            </div>
            <div className="flex flex-row items-center text-xl font-medium text-default-900 gap-2">
              <div>
                <Icon icon="healthicons:no-outline" />
              </div>
              <div>
                <p>
                  0 <span className="text-red-500">Rata - rata :0</span>
                </p>
                <p className="text-sm">Hasil Unggah ditolak hari ini</p>
              </div>
            </div>
          </div>
        </Card>
        <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">
                  Konten Audio
                </div>
                <div className="flex-none">
                  <Button color="primary" className="text-white">
                    <UploadIcon />
                    Unggah Audio
                  </Button>
                  <Button color="primary" className="text-white ml-3">
                    <UploadIcon />
                    Unggah Audio Dengan AI
                  </Button>
                </div>
              </div>
            </CardTitle>
          </CardHeader>
          <CardContent className="p-0">
            <TableAudio />
          </CardContent>
        </Card>
      </div>
    </div>
  );
};

export default ReactTableAudioPage;
