'use client'; import type { PPTElement } from '@openmaic/dsl'; import type { HighlightEffectOptions } from '../types/effects'; export interface HighlightOverlayProps { element: PPTElement; options?: HighlightEffectOptions; } export function HighlightOverlay({ element, options }: HighlightOverlayProps) { if (element.type === 'line') return null; const color = options?.color ?? '#ff6b6b'; const opacity = options?.opacity ?? 0.3; const borderWidth = options?.borderWidth ?? 3; const animated = options?.animated ?? true; const height = 'height' in element ? element.height : 0; const rotate = 'rotate' in element ? element.rotate : 0; return (
{animated && (
)}
); }