import { useEffect, useState } from 'react'; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from '@/components/ui/dialog'; import { Button } from '@/components/ui/button'; import { ipc } from '@/lib/ipc'; import { useAppStore } from '@/stores/app-store'; export function AboutDialog() { const closeModal = useAppStore((s) => s.closeModal); const isOpen = useAppStore((s) => s.modal.kind) === 'about'; const [version, setVersion] = useState('…'); useEffect(() => { ipc.app.getVersion().then((r) => { if (r.ok && typeof r.data === 'string') setVersion(r.data); }); }, []); return ( !o && closeModal()}> About MarkdownConverter Professional Markdown editor and universal file converter.

Version: {version}

{ e.preventDefault(); ipc.app.openExternal('https://github.com/amitwh/markdown-converter'); }} > GitHub repository

© ConcreteInfo. Licensed under MIT.

); }