mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-05-20 00:30:10 +02:00
parent
dea7a8f697
commit
b2c55ebd71
@ -1,4 +1,5 @@
|
||||
import { Callout } from "@/components/ui/callout";
|
||||
import { FiAlertTriangle } from "react-icons/fi";
|
||||
|
||||
export function ErrorCallout({
|
||||
errorTitle,
|
||||
@ -12,7 +13,7 @@ export function ErrorCallout({
|
||||
<Callout
|
||||
className="mt-4"
|
||||
title={errorTitle || "Page not found"}
|
||||
icon="alert"
|
||||
icon={<FiAlertTriangle className="text-red-500 h-5 w-5" />}
|
||||
type="danger"
|
||||
>
|
||||
{errorMsg}
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface CalloutProps {
|
||||
icon?: string;
|
||||
icon?: React.ReactNode;
|
||||
children?: React.ReactNode;
|
||||
type?: "default" | "warning" | "danger" | "notice";
|
||||
className?: string;
|
||||
@ -29,8 +29,10 @@ export function Callout({
|
||||
{...props}
|
||||
>
|
||||
{icon && <span className="mr-4 text-2xl">{icon}</span>}
|
||||
<div>
|
||||
{title && <div className="font-medium mb-1">{title}</div>}
|
||||
<div className="flex-1">
|
||||
{title && (
|
||||
<div className="font-medium mb-1 flex items-center">{title}</div>
|
||||
)}
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user