"use client";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
import SiteBreadcrumb from "@/components/site-breadcrumb";
import { 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 Link from "next/link";

const ReactTableAudioPage = () => {
  return (
    <div>
      {/* <SiteBreadcrumb /> */}
      <div className="space-y-4 m-3">
        <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">
                  Audio
                </div>
                <div className="flex-none">
                  <Link href={"/admin/content/audio/create"}>
                    <Button color="primary" className="text-white">
                      <UploadIcon size={18} className="mr-2" />
                      Create Audio
                    </Button>
                  </Link>
                  {/* <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;
