Skip to content

Open source alternative to Semrush and Ahrefs

544 B
Raw Blame
import type { ReactNode } from "react";
import { Alert, AlertDescription } from "@/client/components/ui/alert";

// The full-width notice strip above the page content in the app shell.
export function AppBanner({
  variant,
  icon,
  children,
}: {
  variant: "info" | "warning" | "destructive";
  icon?: ReactNode;
  children: ReactNode;
}) {
  return (
    <Alert variant={variant} banner className="shrink-0">
      {icon}
      <AlertDescription className="text-foreground">
        {children}
      </AlertDescription>
    </Alert>
  );
}