import { Entity , ImageDimensionType , ImageState , } from '@dark-rush-photography/shared/types' ; import { getImageUrl } from '@dark-rush-photography/shared/util' ; export const loadJsonLdEventCreatedDate = ( date , eventCreatedDate ? ) : string => eventCreatedDate ?? date . toISOString ( ) ; export const loadJsonLdEventImageUrls = ( event , isProduction ) : string [ ] => event . images . filter ( ( image ) => image . state === ImageState . Public && ( image . isStarred || image . isLoved ) ) . map ( ( image ) => getImageUrl ( image . storageId , image . slug , ImageDimensionType . JsonLd , isProduction ) ) ;