Files
pterodactyl-panel/resources/scripts/components/server/schedules/ScheduleCronRow.tsx
T
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

35 lines
1.4 KiB
TypeScript

import { type Schedule } from '@/api/server/schedules/queries';
import { cn } from '@/lib/cn';
interface Props {
cron: Schedule['attributes']['cron'];
className?: string;
}
const ScheduleCronRow = ({ cron, className }: Props) => (
<div className={cn('flex', className)}>
<div className={'w-1/5 sm:w-auto text-center'}>
<p className={'font-medium'}>{cron.minute}</p>
<p className={'text-xs text-muted-foreground uppercase'}>Minute</p>
</div>
<div className={'w-1/5 sm:w-auto text-center ml-4'}>
<p className={'font-medium'}>{cron.hour}</p>
<p className={'text-xs text-muted-foreground uppercase'}>Hour</p>
</div>
<div className={'w-1/5 sm:w-auto text-center ml-4'}>
<p className={'font-medium'}>{cron.day_of_month}</p>
<p className={'text-xs text-muted-foreground uppercase'}>Day (Month)</p>
</div>
<div className={'w-1/5 sm:w-auto text-center ml-4'}>
<p className={'font-medium'}>{cron.month}</p>
<p className={'text-xs text-muted-foreground uppercase'}>Month</p>
</div>
<div className={'w-1/5 sm:w-auto text-center ml-4'}>
<p className={'font-medium'}>{cron.day_of_week}</p>
<p className={'text-xs text-muted-foreground uppercase'}>Day (Week)</p>
</div>
</div>
);
export default ScheduleCronRow;