2023-01-02 16:27:55 +00:00
|
|
|
import { Component } from 'solid-js';
|
|
|
|
import cache from '../../lib/cache';
|
2023-01-03 10:39:17 +00:00
|
|
|
import { peekCachedSignal } from '../../workers/cached-signals';
|
2023-01-02 16:27:55 +00:00
|
|
|
import Tree from '../tree';
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
gpxId: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
const GpxViewer: Component<Props> = ({ gpxId }) => {
|
2023-01-03 10:39:17 +00:00
|
|
|
const gpx = peekCachedSignal({ id: gpxId, method: 'getGpx' });
|
2023-01-02 16:27:55 +00:00
|
|
|
console.log({ caller: 'GpxViewer', gpx: gpx() });
|
|
|
|
const title = () => {};
|
|
|
|
return <Tree title={'gpx'} content={undefined} subTree={undefined} />;
|
|
|
|
};
|
|
|
|
|
|
|
|
export default GpxViewer;
|