File size: 989 Bytes
bc59cdc
 
349f22c
bc59cdc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5e98b5a
 
bc59cdc
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
'use client';

import { CheckCircle as CheckCircle2 } from '@phosphor-icons/react';

/**
 * Distinct "results arrived" notification shown at the top of a tool's
 * results section. Job pages poll in the background; this banner is the
 * explicit signal that a run finished so users aren't left staring at
 * the form wondering if anything happened.
 */

interface ResultsReadyBannerProps {
  title?: string;
  subtitle?: string;
  className?: string;
}

export function ResultsReadyBanner({ title = 'Results ready', subtitle, className = '' }: ResultsReadyBannerProps) {
  return (
    <div className={`rounded-xl bg-good/10 border border-good/25 px-4 py-3 flex items-center gap-3 ${className}`}>
      <CheckCircle2 className="w-5 h-5 text-good shrink-0" />
      <div className="min-w-0">
        <p className="text-sm font-semibold text-text-primary">{title}</p>
        {subtitle && <p className="text-xs text-text-muted mt-0.5 truncate">{subtitle}</p>}
      </div>
    </div>
  );
}