import { useMemo, useRef, useState } from "react"; import Heading from "@/components/ui/heading"; import useSWR from "swr"; import { FrigateConfig } from "@/types/frigateConfig"; import ActivityIndicator from "@/components/indicators/activity-indicator"; import EventReviewTimeline from "@/components/timeline/EventReviewTimeline"; import { MotionData, ReviewData, ReviewSegment, ReviewSeverity, } from "@/types/review"; import { Button } from "@/components/ui/button"; import CameraActivityIndicator from "@/components/indicators/CameraActivityIndicator"; import MotionReviewTimeline from "@/components/timeline/MotionReviewTimeline"; import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue, } from "@/components/ui/select"; import BirdseyeLivePlayer from "@/components/player/BirdseyeLivePlayer"; import { Switch } from "@/components/ui/switch"; import { Label } from "@/components/ui/label"; import { useNavigate } from "react-router-dom"; import SummaryTimeline from "@/components/timeline/SummaryTimeline"; import { isMobile } from "react-device-detect"; // Color data const colors = [ "background", "foreground", "card", "card-foreground", "popover", "popover-foreground", "primary", "primary-foreground", "secondary", "secondary-foreground", "muted", "muted-foreground", "accent", "accent-foreground", "destructive", "destructive-foreground", "border", "input", "ring", ]; function ColorSwatch({ name, value }: { name: string; value: string }) { return (
Shows the 10 most recent events within the last 4 hours
{!config &&Handlebar timestamp: {handlebarTime} - {new Date(handlebarTime * 1000).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", month: "short", day: "2-digit", second: "2-digit", })}
Handlebar is dragging: {isDragging ? "yes" : "no"}
Export start timestamp: {exportStartTime} - {new Date(exportStartTime * 1000).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", month: "short", day: "2-digit", second: "2-digit", })}
Export end timestamp: {exportEndTime} - {new Date(exportEndTime * 1000).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", month: "short", day: "2-digit", second: "2-digit", })}
Colors as set by the current theme. See the{" "} shadcn theming docs {" "} for usage.