import styled from '@emotion/styled'; import type {Location} from 'history'; import {space} from 'sentry/styles/space'; import type {Organization, PageFilters, Project} from 'sentry/types'; import {SessionFieldWithOperation} from 'sentry/types'; import {isPlatformANRCompatible} from 'sentry/views/projectDetail/utils'; import {ProjectAnrScoreCard} from './projectAnrScoreCard'; import ProjectApdexScoreCard from './projectApdexScoreCard'; import ProjectStabilityScoreCard from './projectStabilityScoreCard'; import ProjectVelocityScoreCard from './projectVelocityScoreCard'; type Props = { hasSessions: boolean | null; isProjectStabilized: boolean; location: Location; organization: Organization; selection: PageFilters; hasTransactions?: boolean; project?: Project; query?: string; }; function ProjectScoreCards({ organization, selection, isProjectStabilized, hasSessions, hasTransactions, query, location, project, }: Props) { return ( {isPlatformANRCompatible(project?.platform) ? ( ) : ( )} ); } const CardWrapper = styled('div')` @media (min-width: ${p => p.theme.breakpoints.medium}) { display: grid; grid-column-gap: ${space(2)}; grid-template-columns: repeat(2, minmax(0, 1fr)); } @media (min-width: 1600px) { grid-template-columns: repeat(4, minmax(0, 1fr)); } `; export default ProjectScoreCards;