import React from 'react'; import { getCurrentWeekIso, getVisibilityWeeks, labelForWeek } from './helpers'; interface VisibilityHeaderProps { brandName: string; weekIso: string; onWeekChange: (weekIso: string) => void; scanning: boolean; onForceScan: () => void; onRefresh: () => void; loading: boolean; onOpenSettings: () => void; requiresSetup: boolean; } /** * Sticky-ish header for the AI Visibility page: brand name, ISO-week * picker, and the primary "Force scan now" action. */ const VisibilityHeader = ({ brandName, weekIso, onWeekChange, scanning, onForceScan, onRefresh, loading, onOpenSettings, requiresSetup, }: VisibilityHeaderProps): JSX.Element => { const currentWeek = getCurrentWeekIso(); const weekOptions = getVisibilityWeeks().map(w => ({ label: labelForWeek(w, w === currentWeek), value: w, })); return (