+
+ {t('editor:layout.filebrowser.fileProperties.name')}
+ {file.name}
+
+
+ {t('editor:layout.filebrowser.fileProperties.type')}
+ {file.type.toUpperCase()}
+
+
+ {t('editor:layout.filebrowser.fileProperties.size')}
+ {file.size}
+
+
+ {t('editor:layout.filebrowser.fileProperties.attribution')}
+
+ {resourceProperties.attribution.editing.value ? (
+ <>
+ resourceProperties.attribution.input.set(event.target.value)}
+ />
+ }
+ onClick={() => resourceProperties.attribution.editing.set(false)}
+ />
+ >
+ ) : (
+ <>
+
+ {resourceProperties.attribution.input.value || {t('common:components.none')}}
+
+ }
+ onClick={() => {
+ resourceProperties.attribution.editing.set(true)
+ staticResourceMutation.patch(resourceProperties.id.value, {
+ attribution: resourceProperties.attribution.input.value
+ })
+ }}
+ />
+ >
+ )}
+
+
+
+ {t('editor:layout.filebrowser.fileProperties.licensing')}
+
+ {resourceProperties.licensing.editing.value ? (
+ <>
+ resourceProperties.licensing.input.set(event.target.value)}
+ />
+ }
+ onClick={() => resourceProperties.licensing.editing.set(false)}
+ />
+ >
+ ) : (
+ <>
+
+ {resourceProperties.licensing.input.value || {t('common:components.none')}}
+
+ }
+ onClick={() => {
+ resourceProperties.licensing.editing.set(true)
+ staticResourceMutation.patch(resourceProperties.id.value, {
+ licensing: resourceProperties.licensing.input.value
+ })
+ }}
+ />
+ >
+ )}
+
+
+
+
+ {t('editor:layout.filebrowser.fileProperties.addTag')}
+
+
+ resourceProperties.tags.input.set(event.target.value)}
+ />
+ }
+ title={t('editor:layout.filebrowser.fileProperties.add')}
+ onClick={handleAddTag}
+ />
+
+
+ {resourceProperties.tags.all.value.map((tag) => (
+
+ {tag} handleRemoveTag(tag)} />
+
+ ))}
+
+
+
+