'use client' import type { ContentEditorTextStyle } from '@admin/utils/editor/content-editor-text-style' import { cn } from '@admin/utils/shared/cn' import { Check, List, ListOrdered, ListTodo, Minus, SquareCode, TextQuote } from 'lucide-react' import { ContentEditorFocusSheet } from './content-editor-focus-sheet' // The phone focus view's text-style sheet, an in-view `ContentEditorFocusSheet` with `Done` (Paper `Posts / New · Writing · Text style / Mobile`): // the toolbar's `Aa` key, the block dock's type select and a typed `/` open it. Headings preview in their // own size; the grid turns the block into a list, quote or code block, or inserts a divider. export function ContentEditorTextStyleSheet({ onClose, activeStyle, onStyleSelect }: { onClose: () => void activeStyle: ContentEditorTextStyle onStyleSelect: (style: ContentEditorTextStyle) => void }) { const selectStyle = (style: ContentEditorTextStyle) => { onStyleSelect(style) onClose() } return (
) }