feat : update
CI / Verify (push) Successful in 1m21s
CI / Build immutable images and deploy (push) Successful in 3m12s

This commit is contained in:
2026-09-06 14:47:11 +07:00 Unverified
parent 37d6d6703f
commit c3a7a44d02
19 changed files with 4218 additions and 38 deletions
+6 -1
View File
@@ -19,8 +19,10 @@ export interface UploadedMedia {
export function MediaUploader({
onReady,
onFileSelected,
}: {
onReady: (media: UploadedMedia) => void;
onFileSelected?: (file: File) => void;
}) {
const inputId = useId();
const [state, setState] = useState<"idle" | "uploading">("idle");
@@ -67,7 +69,10 @@ export function MediaUploader({
onChange={(event) => {
const file = event.target.files?.[0];
event.target.value = "";
if (file) void upload(file);
if (file) {
onFileSelected?.(file);
void upload(file);
}
}}
/>
<Button