'use client'; import type { PPTElement } from '@openmaic/dsl'; import { AnchoredBar } from './AnchoredBar'; import { DeleteButton } from './DeleteButton'; import { ImageActions } from './ImageActions'; import { ZOrderButtons } from './ZOrderButtons'; interface AnchoredElementBarProps { /** The selected non-text element, or null when none is selected. */ readonly element: PPTElement | null; } const Separator = () =>
; /** * The selection-anchored bar for non-text elements (image, shape, line, …). * Type-aware: image elements get replace/crop/flip controls; every non-text * element gets z-order (to-front/to-back) + delete. Hugs the selected element * — see AnchoredBar for the shell. Text elements get their own AnchoredTextBar. */ export function AnchoredElementBar({ element }: AnchoredElementBarProps) { const elementId = element?.id ?? ''; return (