import { useApp } from "../../../hooks"; import Link from "next/link"; import { ReactNode } from "react"; interface Props { title: ReactNode; text?: ReactNode; redirect?: string; children?: ReactNode; } export default function WarningBanner({ title = "Warning", text = "", redirect, children }: Props) { const { t } = useApp(); return (