import { Component, createSignal, For } from 'solid-js'; import CloudUploadIcon from '@suid/icons-material/CloudUpload'; // @ts-ignore import css from './GpxImport.module.css'; import Dialog from '../dialog'; import { useI18n } from '@solid-primitives/i18n'; import { Box } from '@suid/material'; import GpxImportSingleFile from './GpxImportSingleFile'; const GpxImport: Component = () => { const [filesToImport, setFilesToImport] = createSignal(); const [t] = useI18n(); const onChangeHandler = (event: any) => { console.log({ caller: 'GpxImport / On change handler', files: event.target.files, }); setFilesToImport(event.target.files); }; const handleClose = (event: any, reason?: string) => { console.log({ caller: 'GpxImport / handleClose', event, reason, }); if (reason === undefined) { setFilesToImport(undefined); } }; return ( <>
{(gpxFile) => } ); }; export default GpxImport;