'use client'; import Link from "next/link"; import React from "react"; import { ReactNode } from "react"; interface Props { title: ReactNode; text?: ReactNode | string; redirect?: string; children?: ReactNode; } export function ErrorBanner({ title = "Error", text = "", redirect, children }: Props) { return (