import { translationAtom } from "@/atoms/translations-atom"; import { GrayMatterFile } from "gray-matter"; import { useAtomValue } from "jotai"; import React from "react"; import Markdown from "react-markdown"; import remarkGfm from "remark-gfm"; export const NewsModal = ({ show, setShow, news, }: { show: boolean; setShow: React.Dispatch>; news: GrayMatterFile; }) => { const t = useAtomValue(translationAtom); return (
{news && ( {news.content} )}
); };