"use client"; import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"; import { Badge } from "@/components/ui/badge"; import { api } from "@/lib/trpc"; import { AlertCircle } from "lucide-react"; import { AdminCard } from "./AdminCard"; interface AdminNotice { level: "info" | "warning" | "error"; message: React.ReactNode; title: string; } function useAdminNotices() { const { data } = api.admin.getAdminNoticies.useQuery(); if (!data) { return []; } const ret: AdminNotice[] = []; if (data.legacyContainersNotice) { ret.push({ level: "warning", message: (
You're using the legacy docker container images. Those will stop getting supported soon. Please follow{" "} this guide {" "} to upgrade.
), title: "Legacy Container Images", }); } return ret; } export function AdminNotices() { const notices = useAdminNotices(); if (notices.length === 0) { return null; } return (