+
+
+
+ {
+ setIsPasswordEnabled(checked)
+ if (!checked) updateShare({ password: null })
+ }}
+ />
+
+ {isPasswordEnabled && (
+
+ setPassword(e.target.value)}
+ placeholder={m.enter_password()}
+ className="text-xs"
+ />
+
+
+ )}
+
+
+
+
+
+ {
+ setIsExpireEnabled(checked)
+ if (!checked) {
+ setExpireAt(undefined)
+ updateShare({ expireAt: null })
+ }
+ }}
+ />
+
+ {isExpireEnabled && (
+
+ {
+ setExpireAt(date)
+ updateShare({ expireAt: date ? date.toISOString() : null })
+ }}
+ className="text-xs"
+ />
+
+ )}
+
+
+
+
+
+ updateShare({ allowDownload: checked })}
+ />
+
+
{m.allow_download_description()}
+
+
+
+
+
+ {
+ if (!checked) {
+ disableWatermark()
+ } else {
+ setIsWatermarkEditorOpen(true)
+ }
+ }}
+ />
+
+
+ {isWatermarkEnabled && watermarkStatus === 'processing' && (
+
+
+ {m.watermark_transcoding_processing()}
+
+ )}
+
+ {isWatermarkEnabled && watermarkStatus !== 'processing' && (
+
+ )}
+
+
+
+