fix build error

This commit is contained in:
Ren Amamiya 2023-09-19 15:29:26 +07:00
parent 4fa8f40e6a
commit 2b34ef3b7a

View File

@ -3,14 +3,14 @@ import { Dispatch, SetStateAction, useState } from 'react';
import { LoaderIcon, MediaIcon } from '@shared/icons';
import { useImageUploader } from '@utils/hooks/useUploader';
import { useNostr } from '@utils/hooks/useNostr';
export function MediaUploader({
setState,
}: {
setState: Dispatch<SetStateAction<string>>;
}) {
const upload = useImageUploader();
const { upload } = useNostr();
const [loading, setLoading] = useState(false);
const uploadMedia = async () => {