addind dashboard features will come back to finish

This commit is contained in:
2025-11-21 08:55:23 +00:00
parent 8284b1dd11
commit 25a744bd8d
7 changed files with 43 additions and 6 deletions

View File

@@ -1,17 +1,21 @@
import clsx from "clsx";
import StatusIndicators from "./StatusIndicators";
type CameraOverviewHeaderProps = {
title?: string;
status?: string;
};
const CardHeader = ({ title }: CameraOverviewHeaderProps) => {
const CardHeader = ({ title, status }: CameraOverviewHeaderProps) => {
console.log(status);
return (
<div
className={clsx(
"w-full border-b border-gray-600 flex flex-row items-center space-x-2 mb-6 relative justify-between",
)}
>
<div className="flex items-center space-x-2">
<div className="flex items-center space-x-1">
{/* {icon && <FontAwesomeIcon icon={icon} className="size-4" />} */}
{status && <StatusIndicators status={status} />}
<h2 className="text-xl">{title}</h2>
</div>
</div>

View File

@@ -0,0 +1,9 @@
import clsx from "clsx";
type StatusIndicatorsProps = { status: string };
const StatusIndicators = ({ status }: StatusIndicatorsProps) => {
return <span className={clsx(`flex w-3 h-3 me-2 rounded-full`, status)}></span>;
};
export default StatusIndicators;