"use client"; import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, } from "@/components/ui/dialog"; import { ChannelForm } from "./channel-form"; import type { ChannelRow } from "@/lib/telegram/admin-queries"; interface ChannelModalProps { open: boolean; onOpenChange: (open: boolean) => void; channel?: ChannelRow; } export function ChannelModal({ open, onOpenChange, channel, }: ChannelModalProps) { return ( {channel ? "Edit Channel" : "Add Channel"} {channel ? "Update the channel details below." : "Add a Telegram channel. Source channels are scanned for archives, destination channels receive indexed files."} onOpenChange(false)} /> ); }