Skip to content

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

976 B
Raw Blame
import { Card } from "@/src/components/ui/card";

export const NotFoundCard = ({
  itemType,
  singleLine = false,
}: {
  itemType: "trace" | "observation";
  singleLine?: boolean;
}) => {
  if (singleLine) {
    return (
      <Card className="flex h-full w-full items-center justify-start overflow-hidden rounded-sm px-2">
        <p
          className="text-muted-foreground truncate text-xs"
          title={`The ${itemType} is either still being processed or has been deleted.`}
        >
          The {itemType} is either still being processed or has been deleted.
        </p>
      </Card>
    );
  }

  return (
    <Card className="flex h-full w-full flex-col items-center justify-center overflow-hidden rounded-sm p-3">
      <h2 className="mb-1.5 text-sm font-bold">Not found</h2>
      <p className="text-muted-foreground max-w-xs text-center text-xs">
        The {itemType} is either still being processed or has been deleted.
      </p>
    </Card>
  );
};