import { useState } from 'react'; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from '@/components/ui/dialog'; import { Button } from '@/components/ui/button'; import { Checkbox } from '@/components/ui/checkbox'; import { useAppStore } from '@/stores/app-store'; import { useSettingsStore } from '@/stores/settings-store'; export function WelcomeDialog() { const closeModal = useAppStore((s) => s.closeModal); const setSetting = useSettingsStore((s) => s.setSetting); const [dontShow, setDontShow] = useState(false); const handleClose = () => { if (dontShow) setSetting('welcomeDismissed', true); closeModal(); }; return ( !o && handleClose()}> Welcome to MarkdownConverter A polished editor for Markdown, with PDF, DOCX, and HTML export.

1. Open a folder

File → Open Folder, or ⌘O. Your tree appears on the left.

2. Edit & preview

Type on the left, see the rendered preview on the right. Toggle with ⌘\.

3. Export anywhere

File → Export to PDF / DOCX / HTML, or batch convert a folder.

); }