import type {Theme} from '@emotion/react'; import Placeholder from 'sentry/components/placeholder'; import {isTraceNode} from '../traceGuards'; import {TraceTree} from '../traceModels/traceTree'; import type {TraceTreeNode} from '../traceModels/traceTreeNode'; import type {VirtualizedViewManager} from '../traceRenderers/virtualizedViewManager'; import { TRACE_COUNT_FORMATTER, TRACE_RIGHT_COLUMN_EVEN_CLASSNAME, TRACE_RIGHT_COLUMN_ODD_CLASSNAME, TraceChildrenButton, TraceRowConnectors, } from '../traceRow/traceRow'; function randomBetween(min: number, max: number) { return Math.floor(Math.random() * (max - min + 1) + min); } export function TraceLoadingRow(props: { index: number; manager: VirtualizedViewManager; node: TraceTreeNode; style: React.CSSProperties; theme: Theme; }) { return (
{props.node.children.length > 0 || props.node.canFetch ? ( void 0} onDoubleClick={() => void 0} > {props.node.children.length > 0 ? TRACE_COUNT_FORMATTER.format(props.node.children.length) : null} ) : null}
); }