"use client";
import SiteBreadcrumb from "@/components/site-breadcrumb";
import { useState } from "react";
import BroadcastEmailTable from "./email/component/table";
import BroadcastWhatsAppTable from "./whatsapp/component/table";

export default function AdminBroadcast() {
  const [tab, setTab] = useState("Email Blast");
  return (
    <div>
      <SiteBreadcrumb />
      <div className="w-full overflow-x-auto bg-white dark:bg-black p-4 rounded-sm space-y-3">
        {tab === "Email Blast" && <BroadcastEmailTable />}
        {tab === "WhatsApp Blast" && <BroadcastWhatsAppTable />}
      </div>
    </div>
  );
}
