dyomedea/src/components/gpx/GpxViewer.tsx

18 lines
506 B
TypeScript
Raw Normal View History

import { Component } from 'solid-js';
import cache from '../../lib/cache';
2023-01-03 10:39:17 +00:00
import { peekCachedSignal } from '../../workers/cached-signals';
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' });
console.log({ caller: 'GpxViewer', gpx: gpx() });
const title = () => {};
return <Tree title={'gpx'} content={undefined} subTree={undefined} />;
};
export default GpxViewer;