优化 代码块主题

This commit is contained in:
tianyaxiang 2025-02-02 11:33:36 +08:00
parent 70769de9e5
commit a201d82984

View File

@ -26,6 +26,8 @@ interface EditorToolbarProps {
selectedTemplate: string
styleOptions: RendererOptions
codeTheme: CodeThemeId
wordCount: string
readingTime: string
onSave: () => void
onCopy: () => Promise<boolean>
onCopyPreview: () => Promise<boolean>
@ -54,7 +56,9 @@ export function EditorToolbar({
onPreviewToggle,
styleOptions,
codeTheme,
onCodeThemeChange
onCodeThemeChange,
wordCount,
readingTime
}: EditorToolbarProps) {
const { toast } = useToast()