import { h, Fragment } from 'preact'; import Box from './components/Box'; import Heading from './components/Heading'; import Link from './components/Link'; import { Table, Thead, Tbody, Tfoot, Th, Tr, Td } from './components/Table'; import { useApiHost, useEvent } from './api'; export default function Event({ eventId }) { const apiHost = useApiHost(); const { data } = useEvent(eventId); if (!data) { return (
loading…
No clip available
)}Key | Value |
---|---|
Camera | {data.camera} |
Timeframe | {startime.toLocaleString()} – {endtime.toLocaleString()} |
Score | {(data.top_score * 100).toFixed(2)}% |
Zones | {data.zones.join(', ')} |