'use client' import type * as React from 'react' import { Button } from '@admin/components/ui/button' // A bottom sheet drawn inside the phone focus view, which already ends at the top of the keyboard // (`useContentEditorFocusViewport`): a scrim over the editor and a sheet pinned to the view's bottom // edge, so it always sits right above the keyboard. A fixed `Drawer` lost track of the keyboard // once iOS panned the page for its input (link form report 2026-11-12). There is no swipe and the // scrim does not dismiss: `Done` closes it (user decision 2026-11-13). Presses on the scrim and on // `Done` keep focus in the editor. export function ContentEditorFocusSheet({ title, onClose, children }: { title: string onClose: () => void children: React.ReactNode }) { return ( <>