This commit is contained in:
2026-02-02 23:57:01 +08:00
parent 76749549ff
commit eaf97b8279
67 changed files with 106 additions and 134 deletions

View File

@@ -1,6 +1,6 @@
import { useRef } from "react";
export default function useFileUpload(callback: (file: File) => void) {
export function useFileUpload(callback: (file: File) => void) {
const inputRef = useRef<HTMLInputElement>(null);
const upload = (type: string = "*") => {
const input = inputRef.current;