diff --git a/apps/web/src/components/ui/report/elements/MetricElement/MetricElement.tsx b/apps/web/src/components/ui/report/elements/MetricElement/MetricElement.tsx index 4e86bdfb5..86642d31e 100644 --- a/apps/web/src/components/ui/report/elements/MetricElement/MetricElement.tsx +++ b/apps/web/src/components/ui/report/elements/MetricElement/MetricElement.tsx @@ -6,50 +6,18 @@ import { MetricEmbedPlaceholder } from './MetricPlaceholder'; import { Caption, CaptionTextarea } from '../CaptionNode'; import { mediaResizeHandleVariants, Resizable, ResizeHandle } from '../ResizeHandle'; import { type TMetricElement } from '../../plugins/metric-plugin'; +import React from 'react'; type MetricElementProps = PlateElementProps; export const MetricElement = withHOC( ResizableProvider, function MetricElement({ children, ...props }: MetricElementProps) { - const width = useResizableValue('width'); - const align = 'center'; // Default align for metrics const metricId = props.element.metricId; const { attributes, ...elementProps } = props; - const content = metricId ? ( -
- - - - {/* Metric content placeholder - replace with actual metric rendering */} -
-
Metric: {metricId}
-
- - -
- - - - -
- ) : ( - - ); + const content = metricId ? : ; return ( { + const width = useResizableValue('width'); + const align = 'center'; // Default align for metrics + return ( +
+ + + + {/* Metric content placeholder - replace with actual metric rendering */} +
+
Metric: {metricId}
+
+ + +
+ + + + +
+ ); +});