mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 11:45:24 +03:00
Add timeline item card
This commit is contained in:
parent
2926a88be4
commit
e8eea75cb5
32
web/src/components/card/TimelineItemCard.tsx
Normal file
32
web/src/components/card/TimelineItemCard.tsx
Normal file
@ -0,0 +1,32 @@
|
||||
import PreviewThumbnailPlayer from "../player/PreviewThumbnailPlayer";
|
||||
import { AspectRatio } from "../ui/aspect-ratio";
|
||||
import { Card, CardContent } from "../ui/card";
|
||||
|
||||
type TimelineItemCardProps = {
|
||||
timeline: Timeline;
|
||||
relevantPreview: Preview | undefined;
|
||||
};
|
||||
export default function TimelineItemCard({
|
||||
timeline,
|
||||
relevantPreview,
|
||||
}: TimelineItemCardProps) {
|
||||
return (
|
||||
<Card className="bg-red-500">
|
||||
<div className="flex justify-between h-24">
|
||||
<div className="w-1/2">
|
||||
<PreviewThumbnailPlayer
|
||||
camera={timeline.camera}
|
||||
relevantPreview={relevantPreview}
|
||||
startTs={timeline.timestamp}
|
||||
eventId={timeline.source_id}
|
||||
isMobile={false}
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<div>{timeline.camera}</div>
|
||||
<div>{timeline.data.label}</div>
|
||||
</div>
|
||||
</div>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user