import ExternalLink from 'sentry/components/links/externalLink';
import {t, tct} from 'sentry/locale';
import type {Sort} from 'sentry/utils/discover/fields';
import {MIN_DEAD_RAGE_CLICK_SDK} from 'sentry/utils/replays/sdkVersions';
import SortableHeader from 'sentry/views/replays/replayTable/sortableHeader';
import {ReplayColumn} from 'sentry/views/replays/replayTable/types';
type Props = {
column: ReplayColumn;
sort?: Sort;
};
function HeaderCell({column, sort}: Props) {
switch (column) {
case ReplayColumn.ACTIVITY:
return (
);
case ReplayColumn.BROWSER:
return ;
case ReplayColumn.COUNT_DEAD_CLICKS:
return (
= [minSDK]. [link:Learn more.]',
{
minSDK: MIN_DEAD_RAGE_CLICK_SDK.minVersion,
link: ,
}
)}
/>
);
case ReplayColumn.COUNT_DEAD_CLICKS_NO_HEADER:
return ;
case ReplayColumn.COUNT_ERRORS:
return ;
case ReplayColumn.COUNT_RAGE_CLICKS:
return (
= [minSDK]. [link:Learn more.]',
{
minSDK: MIN_DEAD_RAGE_CLICK_SDK.minVersion,
link: ,
}
)}
/>
);
case ReplayColumn.COUNT_RAGE_CLICKS_NO_HEADER:
return ;
case ReplayColumn.DURATION:
return ;
case ReplayColumn.OS:
return ;
case ReplayColumn.REPLAY:
return ;
case ReplayColumn.MOST_ERRONEOUS_REPLAYS:
return ;
case ReplayColumn.MOST_RAGE_CLICKS:
return (
= [minSDK]. [link:Learn more.]',
{
minSDK: MIN_DEAD_RAGE_CLICK_SDK.minVersion,
link: ,
}
)}
/>
);
case ReplayColumn.MOST_DEAD_CLICKS:
return (
= [minSDK]. [link:Learn more.]',
{
minSDK: MIN_DEAD_RAGE_CLICK_SDK.minVersion,
link: ,
}
)}
/>
);
case ReplayColumn.SLOWEST_TRANSACTION:
return (
);
default:
return null;
}
}
export default HeaderCell;