message: created: function for slider images urls
diff: @@ -15,6 +15,21 @@ function findFileWithRole(campaign: CampaignResponse, role: CampaignFileRole) {
  return campaign?.campaignFiles?.find((file) => file.role == role)
  }
  +/**
  + * Finds all files with given role
  + */
  +function filterFilesWithRole(campaign: CampaignResponse, role: CampaignFileRole) {
  + return campaign?.campaignFiles?.filter((file) => file.role == role)
  +}
  +
  +export function campaignSliderUrls(campaign: CampaignResponse): string[] {
  + const files = filterFilesWithRole(campaign, CampaignFileRole.campaignPhoto)
  + if (files && files.length > 0) {
  + return files.map((file) => fileUrl(file))
  + }
  + return []
  +}
  +
  export function campaignListPictureUrl(campaign: CampaignResponse): string {
  const file = findFileWithRole(campaign, CampaignFileRole.campaignListPhoto)
  return file ? fileUrl(file) : '/podkrepi-icon.svg'
  