'use client'; import { FiThumbsUp, FiTrendingUp, FiInfo } from 'react-icons/fi'; import { red, yellow, green, hexToRgba } from '../colors'; type CoachingItem = { headline: string; rationale: string; action?: string; type?: 'support' | 'coaching'; }; export default function EnterpriseCoaching({ roleName, matchLabel, coaching, }: { roleName?: string; matchLabel?: string; coaching?: { items?: CoachingItem[]; summary?: string } | null; }) { if (!coaching || !Array.isArray(coaching.items) || coaching.items.length === 0) return null; const toneTint = (label?: string) => { const l = (label || '').toLowerCase(); const base = (l.includes('optimal') || l.includes('strong')) ? green : (l.includes('moderate')) ? yellow : red; return hexToRgba(base, 0.10); }; return (
{roleName ? `Role Alignment — ${roleName}` : 'Role Alignment'}
{/*
AI-generated
These items reflect alignment evidence and coaching opportunities based on the role requirements.
*/}
{coaching.summary ? (
{coaching.summary}
) : null}
); }