CronJobsEmptyState.tsx14 lines · main
| 1 | export default function CronJobsEmptyState({ page }: { page: string }) { |
| 2 | return ( |
| 3 | <div className=" text-center h-full w-full items-center justify-center rounded-md px-4 py-12 "> |
| 4 | <p className="text-sm text-foreground"> |
| 5 | {page === 'jobs' ? 'No cron jobs created yet' : 'No runs for this cron job yet'} |
| 6 | </p> |
| 7 | <p className="text-sm text-foreground-lighter"> |
| 8 | {page === 'jobs' |
| 9 | ? 'Create one by clicking "Create a new cron job"' |
| 10 | : 'Check the schedule of your cron jobs to see when they run'} |
| 11 | </p> |
| 12 | </div> |
| 13 | ) |
| 14 | } |