import { AnimatePresence, motion } from 'framer-motion'; import React, { useState } from 'react'; import type { ElementInfoMetadata } from '~/types/message'; import { cubicEasingFn } from '~/utils/easings'; import { ElementPreview } from './ElementPreview'; interface ElementEditPreviewProps { elementEditInfo: ElementInfoMetadata; className?: string; } export const ElementEditPreview: React.FC = ({ elementEditInfo, className = '' }) => { const [isExpanded, setIsExpanded] = useState(false); const toggleExpand = () => { setIsExpanded(!isExpanded); }; return (

编辑元素: {elementEditInfo.tagName.toLowerCase()} {elementEditInfo.className && `.${elementEditInfo.className.split(' ')[0]}`} {elementEditInfo.id && `#${elementEditInfo.id}`}

{isExpanded && ( )}
); };