A free, open source, and extensible speech-to-text application that works completely offline.
import React from "react";
import { useTranslation } from "react-i18next";
import { Dialog } from "../ui";
import { MarkdownContent } from "./MarkdownContent";
import type { ReleaseNote } from "./releaseNotes";
interface WhatsNewModalProps {
note: ReleaseNote;
open: boolean;
onDismiss: () => void;
}
export const WhatsNewModal: React.FC<WhatsNewModalProps> = ({
note,
open,
onDismiss,
}) => {
const { t } = useTranslation();
return (
<Dialog
open={open}
title={t("whatsNew.title", { version: note.version })}
closeLabel={t("common.close")}
onOpenChange={(nextOpen) => {
if (!nextOpen) onDismiss();
}}
>
<MarkdownContent markdown={note.markdown} />
</Dialog>
);
};