import React from 'react'; import { __, sprintf } from '@wordpress/i18n'; import { ArrowRight, Search } from 'lucide-react'; import { gradeStyle, type HeroModel } from './model'; /** The one dark block: how healthy the library is, what is worst, and what to click. */ export default function GradeHero( { grade, score, hero, onScan, onFixAll, busy }: { grade: string; score: number; hero: HeroModel; onScan: () => void; onFixAll: () => void; busy: boolean; } ) { const style = gradeStyle( grade ); const trendColour = hero.trendDir === 'down' ? '#FED7AA' : hero.trendDir === 'up' ? '#A7F3D0' : '#C9BFF0'; const cta = ( <> { hero.cta.label }