import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/components/ui/card"; import { api } from "@/utils/api"; import { BellRing } from "lucide-react"; import { AddNotification } from "./add-notification"; import { DeleteNotification } from "./delete-notification"; export const ShowNotifications = () => { const { data } = api.notification.all.useQuery(); return (
Notifications Add your providers to receive notifications, like Discord, Slack, Telegram, Email, etc. {data?.length === 0 ? (
To send notifications is required to set at least 1 provider.
) : (
{data?.map((destination, index) => (
{index + 1}. {destination.name}
{/* */}
))}
)}
); };