diff --git a/src/components/sidebar/photoUploader.tsx b/src/components/sidebar/photoUploader.tsx index 0ccac1b..089facd 100644 --- a/src/components/sidebar/photoUploader.tsx +++ b/src/components/sidebar/photoUploader.tsx @@ -16,6 +16,24 @@ interface DefibrillatorDetailsProps { closeSidebar: () => void; } +// TODO: consider splitting cc0 part from translation +const LicenceInfoBlock: FC = () => { + const { t } = useTranslation(); + const cc0 = "Creative Commons Zero (CC0 v1.0)"; + const licenseInfoText = t("photo.license"); + if (!licenseInfoText.includes(cc0)) { + return
{licenseInfoText}
; + } + const [before, after] = licenseInfoText.split(cc0); + return ( ++ {before} + {cc0} + {after} +
+ ); +}; + const PhotoUpload: FC