sourcebot/packages/web/src/app/[domain]/components/notFound.tsx

25 lines
636 B
TypeScript
Raw Normal View History

2025-02-04 20:04:05 +00:00
import { Separator } from "@/components/ui/separator";
import { cn } from "@/lib/utils";
interface NotFoundProps {
message: string;
className?: string;
}
export const NotFound = ({
message,
className,
}: NotFoundProps) => {
return (
<div className={cn("m-auto", className)}>
<div className="flex flex-row items-center gap-2">
<h1 className="text-xl">404</h1>
<Separator
orientation="vertical"
className="h-5"
/>
<p className="text-sm">{message}</p>
</div>
</div>
)
}