mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-01-03 06:15:02 +00:00
Review card too
This commit is contained in:
parent
64b5162000
commit
9bc8c93d20
@ -39,6 +39,7 @@ import { Trans, useTranslation } from "react-i18next";
|
|||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
import { LuCircle } from "react-icons/lu";
|
import { LuCircle } from "react-icons/lu";
|
||||||
import { MdAutoAwesome } from "react-icons/md";
|
import { MdAutoAwesome } from "react-icons/md";
|
||||||
|
import { GenAISummaryDialog } from "../overlay/chip/GenAISummaryChip";
|
||||||
|
|
||||||
type ReviewCardProps = {
|
type ReviewCardProps = {
|
||||||
event: ReviewSegment;
|
event: ReviewSegment;
|
||||||
@ -219,12 +220,14 @@ export default function ReviewCard({
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{event.data.metadata?.title && (
|
{event.data.metadata?.title && (
|
||||||
<div className="flex items-center gap-1.5 rounded bg-secondary/50">
|
<GenAISummaryDialog review={event}>
|
||||||
<MdAutoAwesome className="size-3 shrink-0 text-primary" />
|
<div className="flex items-center gap-1.5 rounded bg-secondary/50 hover:underline">
|
||||||
<span className="truncate text-xs text-primary">
|
<MdAutoAwesome className="size-3 shrink-0 text-primary" />
|
||||||
{event.data.metadata.title}
|
<span className="truncate text-xs text-primary">
|
||||||
</span>
|
{event.data.metadata.title}
|
||||||
</div>
|
</span>
|
||||||
|
</div>
|
||||||
|
</GenAISummaryDialog>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user