diff --git a/src/components/listing-parts/game-reports.astro b/src/components/listing-parts/game-reports.astro new file mode 100644 index 0000000..c124192 --- /dev/null +++ b/src/components/listing-parts/game-reports.astro @@ -0,0 +1,77 @@ +--- +// import { getStatusOfScan } from '~/helpers/statuses.js' +// import { supportedArchitectures } from '~/helpers/bundles.js' +import { ensureListingDetails } from '~/helpers/listing-page' +import Heading from './heading.astro' + +const { + listing +} = Astro.props + +const details = ensureListingDetails(listing) + +const hasReports = Array.isArray( details.api.reports ) && details.api.reports.length > 0 + +--- +{ hasReports && ( + + + + + +)}