import type {ComponentProps, CSSProperties, ReactNode} from 'react'; import {forwardRef} from 'react'; import HeaderCell from 'sentry/components/replays/virtualizedGrid/headerCell'; import type {Tooltip} from 'sentry/components/tooltip'; import {t} from 'sentry/locale'; import type useSortAccessibility from 'sentry/views/replays/detail/accessibility/useSortAccessibility'; type SortConfig = ReturnType['sortConfig']; type Props = { handleSort: ReturnType['handleSort']; index: number; sortConfig: SortConfig; style: CSSProperties; }; const COLUMNS: { field: SortConfig['by']; label: ReactNode; tooltipTitle?: ComponentProps['title']; }[] = [ { field: 'impact', label: '', }, { field: 'id', label: t('Type'), }, {field: 'element', label: t('Element')}, ]; export const COLUMN_COUNT = COLUMNS.length; const AccessibilityHeaderCell = forwardRef( ({handleSort, index, sortConfig, style}: Props, ref) => { const {field, label, tooltipTitle} = COLUMNS[index]; return ( ); } ); export default AccessibilityHeaderCell;