Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

640 B
Raw Blame
import React from "react";
import { Alert } from "@/src/components/design-system/Alert/Alert";

export interface StepHeaderProps {
  title: string;
  description: string;
  errorMessage?: string;
}

export const StepHeader: React.FC<StepHeaderProps> = ({
  title,
  description,
  errorMessage,
}) => {
  return (
    <div className="space-y-2">
      <h3 className="text-lg font-bold">{title}</h3>
      <p className="text-muted-foreground text-sm">{description}</p>
      {errorMessage && (
        <Alert variant="destructive">
          <Alert.Description>{errorMessage}</Alert.Description>
        </Alert>
      )}
    </div>
  );
};