import styled from '@emotion/styled'; import {PanelHeader} from 'sentry/components/panels'; import {t} from 'sentry/locale'; import space from 'sentry/styles/space'; type Props = { withChart: boolean; narrowGroups?: boolean; }; const GroupListHeader = ({withChart = true, narrowGroups = false}: Props) => ( {t('Issue')} {withChart && ( {t('Graph')} )} {t('events')} {t('users')} {t('Assignee')} ); export default GroupListHeader; const Heading = styled('div')` display: flex; align-self: center; margin: 0 ${space(2)}; color: ${p => p.theme.subText}; `; const IssueWrapper = styled(Heading)` flex: 1; width: 66.66%; @media (min-width: ${p => p.theme.breakpoints.medium}) { width: 50%; } `; const EventUserWrapper = styled(Heading)` justify-content: flex-end; width: 60px; @media (min-width: ${p => p.theme.breakpoints.xlarge}) { width: 80px; } `; const ChartWrapper = styled(Heading)` justify-content: space-between; width: 160px; `; const AssigneeWrapper = styled(Heading)` justify-content: flex-end; width: 80px; `;