mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-11-08 12:24:45 +00:00
19 lines
572 B
TypeScript
19 lines
572 B
TypeScript
"use client";
|
|
|
|
import { getScanScheduleLabel } from "@/components/scans/scans.utils";
|
|
import { DateWithTime } from "@/components/ui/entities";
|
|
import type { ScanProps } from "@/types";
|
|
|
|
export function ScheduleCell({ scan }: { scan: ScanProps }) {
|
|
return (
|
|
<div className="flex flex-col gap-1">
|
|
<span className="text-text-neutral-primary text-sm">
|
|
{getScanScheduleLabel(scan.attributes.trigger)}
|
|
</span>
|
|
{scan.attributes.scheduled_at && (
|
|
<DateWithTime dateTime={scan.attributes.scheduled_at} showTime />
|
|
)}
|
|
</div>
|
|
);
|
|
}
|