"use client"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; import { PageHeader } from "@/components/shared/page-header"; import { AccountsTab } from "./accounts-tab"; import { ChannelsTab } from "./channels-tab"; import { WorkerStatusPanel } from "./worker-status-panel"; import { BotSendsTab } from "./bot-sends-tab"; import type { AccountRow, ChannelRow, GlobalDestination } from "@/lib/telegram/admin-queries"; import type { IngestionAccountStatus } from "@/lib/telegram/types"; import type { SendHistoryRow } from "@/types/telegram.types"; interface TelegramAdminProps { accounts: AccountRow[]; channels: ChannelRow[]; ingestionStatus: IngestionAccountStatus[]; globalDestination: GlobalDestination; sendHistory: SendHistoryRow[]; workerIntervalMinutes: number; } export function TelegramAdmin({ accounts, channels, ingestionStatus, globalDestination, sendHistory, workerIntervalMinutes, }: TelegramAdminProps) { return (