import rehypeStringify from "rehype-stringify"; import remarkGfm from "remark-gfm"; import remarkParse from "remark-parse"; import remarkRehype from "remark-rehype"; import ReactMarkdown from "react-markdown"; import type { IncidentType } from "../api/types"; import { useTranslation } from "react-i18next"; import dayjs from "dayjs/esm"; import rehypeRaw from "rehype-raw"; export const Incident = ({ title, active, description, createdAt, scheduled, }: IncidentType) => { const { t } = useTranslation(); return (
{dayjs(createdAt).format("MMMM D, h:mm A")}
{scheduled ? (
{t("scheduled")}
) : (
{active ? t("active") : t("closed")}
)}
{title}
{description}
); };