|
| 1 | +import SurgeCatalogueContainer from '#components/domain/SurgeCatalogueContainer'; |
| 2 | +import SurgeContentContainer from '#components/domain/SurgeContentContainer'; |
| 3 | +import Link from '#components/Link'; |
| 4 | +import useTranslation from '#hooks/useTranslation'; |
| 5 | +import { resolveToComponent } from '#utils/translation'; |
| 6 | +import { useMemo } from 'react'; |
| 7 | + |
| 8 | +import i18n from './i18n.json'; |
| 9 | + |
| 10 | +// eslint-disable-next-line import/prefer-default-export |
| 11 | +export function Component() { |
| 12 | + const strings = useTranslation(i18n); |
| 13 | + |
| 14 | + const imageList = useMemo( |
| 15 | + () => ([ |
| 16 | + { |
| 17 | + src: 'https://prddsgofilestorage.blob.core.windows.net/api/documents/surge/uav1.jpg', |
| 18 | + caption: strings.UAVImageOne, |
| 19 | + }, |
| 20 | + { |
| 21 | + src: 'https://prddsgofilestorage.blob.core.windows.net/api/documents/surge/uav2.jpg', |
| 22 | + caption: strings.UAVImageTwo, |
| 23 | + }, |
| 24 | + { |
| 25 | + src: 'https://prddsgofilestorage.blob.core.windows.net/api/documents/surge/uav3.jpg', |
| 26 | + caption: strings.UAVImageThree, |
| 27 | + }, |
| 28 | + { |
| 29 | + src: 'https://prddsgofilestorage.blob.core.windows.net/api/documents/surge/uav4.jpg', |
| 30 | + caption: strings.UAVImageFour, |
| 31 | + }, |
| 32 | + ]), |
| 33 | + [ |
| 34 | + strings.UAVImageOne, |
| 35 | + strings.UAVImageTwo, |
| 36 | + strings.UAVImageThree, |
| 37 | + strings.UAVImageFour, |
| 38 | + ], |
| 39 | + ); |
| 40 | + |
| 41 | + return ( |
| 42 | + <SurgeCatalogueContainer |
| 43 | + heading={strings.uavHeading} |
| 44 | + goBackFallbackLink="surgeCatalogueOther" |
| 45 | + imageList={imageList} |
| 46 | + > |
| 47 | + <SurgeContentContainer |
| 48 | + heading={strings.capacity} |
| 49 | + > |
| 50 | + <div>{strings.capacityDetails}</div> |
| 51 | + </SurgeContentContainer> |
| 52 | + |
| 53 | + <SurgeContentContainer |
| 54 | + heading={strings.emergencyServices} |
| 55 | + > |
| 56 | + <div>{strings.emergencyServicesDetails}</div> |
| 57 | + <ul> |
| 58 | + <li> |
| 59 | + <strong>{strings.otherUAVEmergencyListItemOneBullet}</strong> |
| 60 | + {strings.otherUAVEmergencyListItemOne} |
| 61 | + </li> |
| 62 | + <li> |
| 63 | + <strong>{strings.otherUAVEmergencyListItemTwoBullet}</strong> |
| 64 | + {strings.otherUAVEmergencyListItemTwo} |
| 65 | + </li> |
| 66 | + <li> |
| 67 | + <strong>{strings.otherUAVEmergencyListItemThreeBullet}</strong> |
| 68 | + {strings.otherUAVEmergencyListItemThree} |
| 69 | + </li> |
| 70 | + <li> |
| 71 | + <strong>{strings.otherUAVEmergencyListItemFourBullet}</strong> |
| 72 | + {strings.otherUAVEmergencyListItemFour} |
| 73 | + </li> |
| 74 | + </ul> |
| 75 | + <div>{strings.mustAllow}</div> |
| 76 | + </SurgeContentContainer> |
| 77 | + |
| 78 | + <SurgeContentContainer |
| 79 | + heading={strings.otherUAVPersonnel} |
| 80 | + > |
| 81 | + <div>{strings.otherUAVPersonnelDetails}</div> |
| 82 | + </SurgeContentContainer> |
| 83 | + |
| 84 | + <SurgeContentContainer |
| 85 | + heading={strings.otherUAVstandardComponents} |
| 86 | + > |
| 87 | + <ul> |
| 88 | + <li> |
| 89 | + {strings.otherUAVstandardComponentsListItemOne} |
| 90 | + </li> |
| 91 | + <li> |
| 92 | + {strings.otherUAVstandardComponentsListItemTwo} |
| 93 | + </li> |
| 94 | + </ul> |
| 95 | + </SurgeContentContainer> |
| 96 | + |
| 97 | + <SurgeContentContainer |
| 98 | + heading={strings.otherUAVspecifications} |
| 99 | + > |
| 100 | + <div> |
| 101 | + <strong>{strings.otherUAVcostHeader}</strong> |
| 102 | + <br /> |
| 103 | + {strings.otherUAVcost} |
| 104 | + </div> |
| 105 | + <div> |
| 106 | + <strong>{strings.otherUAVproviderHeader}</strong> |
| 107 | + <br /> |
| 108 | + {strings.otherUAVprovider} |
| 109 | + </div> |
| 110 | + </SurgeContentContainer> |
| 111 | + |
| 112 | + <SurgeContentContainer |
| 113 | + heading={strings.rapidResponse} |
| 114 | + > |
| 115 | + <div> |
| 116 | + {resolveToComponent( |
| 117 | + strings.rapidResponseDetail, |
| 118 | + { |
| 119 | + link: ( |
| 120 | + <Link |
| 121 | + href="https://ifrcorg.sharepoint.com/:b:/s/IFRCSharing/EVJrxE_3BpxOliHeThEBk_oB3nAcku47-5BxA-sXV2s8YQ" |
| 122 | + external |
| 123 | + > |
| 124 | + {strings.otherLink} |
| 125 | + </Link> |
| 126 | + ), |
| 127 | + }, |
| 128 | + )} |
| 129 | + </div> |
| 130 | + </SurgeContentContainer> |
| 131 | + </SurgeCatalogueContainer> |
| 132 | + ); |
| 133 | +} |
| 134 | + |
| 135 | +Component.displayName = 'SurgeCatalogueOtherUAV'; |
0 commit comments