mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
43 lines
1.3 KiB
TypeScript
43 lines
1.3 KiB
TypeScript
|
type LiveIconProps = {
|
||
|
layout?: "list" | "grid";
|
||
|
};
|
||
|
|
||
|
export function LiveGridIcon({ layout }: LiveIconProps) {
|
||
|
return (
|
||
|
<div className="size-full flex flex-col gap-0.5 rounded-md overflow-hidden">
|
||
|
<div
|
||
|
className={`h-1 w-full ${layout == "grid" ? "bg-selected" : "bg-muted-foreground"}`}
|
||
|
/>
|
||
|
<div className="h-1 w-full flex gap-0.5">
|
||
|
<div
|
||
|
className={`w-full ${layout == "grid" ? "bg-selected" : "bg-muted-foreground"}`}
|
||
|
/>
|
||
|
<div
|
||
|
className={`w-full ${layout == "grid" ? "bg-selected" : "bg-muted-foreground"}`}
|
||
|
/>
|
||
|
</div>
|
||
|
<div className="h-1 w-full flex gap-0.5">
|
||
|
<div
|
||
|
className={`w-full ${layout == "grid" ? "bg-selected" : "bg-muted-foreground"}`}
|
||
|
/>
|
||
|
<div
|
||
|
className={`w-full ${layout == "grid" ? "bg-selected" : "bg-muted-foreground"}`}
|
||
|
/>
|
||
|
</div>
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
export function LiveListIcon({ layout }: LiveIconProps) {
|
||
|
return (
|
||
|
<div className="size-full flex flex-col gap-0.5 rounded-md overflow-hidden">
|
||
|
<div
|
||
|
className={`size-full ${layout == "list" ? "bg-selected" : "bg-muted-foreground"}`}
|
||
|
/>
|
||
|
<div
|
||
|
className={`size-full ${layout == "list" ? "bg-selected" : "bg-muted-foreground"}`}
|
||
|
/>
|
||
|
</div>
|
||
|
);
|
||
|
}
|