--- // 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 const defaultSourceUrl = 'https://applesilicongames.com/' function getSourceUrl ( report ) { // Try to get the source url from the report first if ( report['Source'].includes('https://') ) { return report['Source'] } // Otherwise, fall back to the default source url return defaultSourceUrl } --- { hasReports && ( )}