import { Archive, ArchiveRestoreIcon, ExternalLink } from 'lucide-react' import Link from 'next/link' import { Button } from 'ui' import { Markdown } from '@/components/interfaces/Markdown' import { Notification, NotificationData } from '@/data/notifications/notifications-v2-query' import { useOrganizationsQuery } from '@/data/organizations/organizations-query' import { useProjectDetailQuery } from '@/data/projects/project-detail-query' interface NotificationDetailProps { notification: Notification onUpdateStatus: (id: string, status: 'archived' | 'seen') => void } export const NotificationDetail = ({ notification, onUpdateStatus }: NotificationDetailProps) => { const data = notification.data as NotificationData const { data: project } = useProjectDetailQuery({ ref: data.project_ref }) const { data: organizations } = useOrganizationsQuery() const organization = data.org_slug !== undefined ? organizations?.find((org) => org.slug === data.org_slug) : project !== undefined ? organizations?.find((org) => org.id === project.organization_id) : undefined const onButtonAction = (type?: string) => { // [Joshen] Implement accordingly - BE team will need to give us a heads up on this console.log('Action', type) } return (