import { useTranslation } from "react-i18next"; import { useEditorStore } from "@/store/module"; import Icon from "@/components/Icon"; import showCreateResourceDialog from "@/components/CreateResourceDialog"; import showResourcesSelectorDialog from "@/components/ResourcesSelectorDialog"; const ResourceSelector = () => { const { t } = useTranslation(); const editorStore = useEditorStore(); const handleUploadFileBtnClick = () => { showCreateResourceDialog({ onConfirm: (resourceList) => { editorStore.setResourceList([...editorStore.state.resourceList, ...resourceList]); }, }); }; return (