+
+
setFiles(Array.from(e.target.files ?? []))}
+ className="block w-full text-dense text-anvil-700 file:mr-3 file:rounded-md file:border file:border-anvil-300 file:bg-transparent file:px-3 file:py-1.5 file:text-dense dark:text-anvil-200 dark:file:border-anvil-700"
+ />
+
+ {targets.length > 0 ? (
+ <>Uploaded to {targets.join(', ')} and verified before the release is written. Up to 256 MiB per file.>
+ ) : (
+ <>
+ No storage of your own chosen for this repo (release assets never go to Platform).{' '}
+ Set up storage to attach assets.
+ >
+ )}
+
+ {files.length > 0 ? (
+
+ {files.map((f) => {
+ const s = progress[f.name]
+ return (
+ -
+
+ {f.name}
+ {formatBytes(f.size)}
+ {s ? {stateText(s)} : null}
+
+ )
+ })}
+
+ ) : null}
+