= ({
onRunPipeline,
onRefresh,
+ onClearDatabase,
isPipelineRunning,
isLoading,
}) => {
+ const handleClearDatabase = () => {
+ if (window.confirm('Are you sure you want to clear all jobs from the database? This cannot be undone.')) {
+ onClearDatabase();
+ }
+ };
+
return (