"use client"; import {Card} from "@/components/ui/card"; import {NotificationChannel, NotificationChannelWith} from "@/db/schema/09_notification-channel"; import {Badge} from "@/components/ui/badge"; import { DeleteNotifierButton } from "@/components/wrappers/dashboard/common/notifier/notifier-card/button-delete-notifier"; import {EditNotifierButton} from "@/components/wrappers/dashboard/common/notifier/notifier-card/button-edit-notifier"; import {OrganizationWithMembers} from "@/db/schema/03_organization"; import {getNotificationChannelIcon} from "@/components/wrappers/dashboard/admin/notifications/helpers"; export type NotifierCardProps = { data: NotificationChannelWith; organization?: OrganizationWithMembers; organizations?: OrganizationWithMembers[]; adminView?: boolean; }; export const NotifierCard = (props: NotifierCardProps) => { const {data, organization} = props; return (
{getNotificationChannelIcon(data.provider)}

{data.name}

{data.provider}
); };