19 lines
395 B
JavaScript
19 lines
395 B
JavaScript
"use client";
|
|
|
|
import UploadFile from "@/app/component/UploadFile";
|
|
import { useRef } from "react";
|
|
|
|
function Head() {
|
|
const fileRef = useRef();
|
|
|
|
const openInput = () => fileRef.current.click();
|
|
|
|
return (
|
|
<div className="flex items-center justify-center md:justify-start gap-[10px]">
|
|
<UploadFile fileRef={fileRef} openInput={openInput} />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default Head;
|