/** * Header component with logo and pipeline trigger. */ import React from 'react'; import { RocketIcon, PlayIcon, RefreshIcon, TrashIcon } from './Icons'; interface HeaderProps { onRunPipeline: () => void; onRefresh: () => void; onClearDatabase: () => void; isPipelineRunning: boolean; isLoading: boolean; } export const Header: React.FC = ({ 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 (
Job Ops
); };