'use client' import type * as React from 'react' import { Button } from '@admin/components/ui/button' import { ButtonGroup } from '@admin/components/ui/button-group' import { Undo2 } from 'lucide-react' // The markdown key row at the foot of the phone focus view in source mode (Paper // `Posts / New · Writing · Markdown / Mobile`): the markdown marks as one `ButtonGroup` of outline // keys across the bar, then undo, on the card like the rich-text dock. The keys apply the same // formatting the desktop source toolbar does and prevent the pointer default so the keyboard stays. export function SourceModeKeyRow({ disabled, canUndo, linkKey, onHeading, onBold, onItalic, onList, onQuote, onCode, onUndo }: { disabled: boolean canUndo: boolean linkKey: React.ReactNode onHeading: () => void onBold: () => void onItalic: () => void onList: () => void onQuote: () => void onCode: () => void onUndo: () => void }) { return (