import { Paper, Box, Typography } from "@mui/material"; import { MediaViewer, ReactMarkdownComponent } from "@widgets"; import { articlesStore, languageStore } from "@shared"; import { observer } from "mobx-react-lite"; import { ImagePlus } from "lucide-react"; export const PreviewRightWidget = observer(() => { const { articleData, articleMedia } = articlesStore; const { language } = languageStore; const article = articleData?.[language]; if (!article) return null; return ( {articleMedia ? ( ) : ( )} {article.heading || "Выберите статью"} {article.body ? ( ) : ( Предпросмотр статьи появится здесь )} {/* @ts-ignore */} {articleData?.right && articleData?.right.length > 1 && ( {/* @ts-ignore */} {articleData.right.map((a, idx) => ( ))} )} ); });