Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

698 B
Raw Blame
import type { ReactNode } from "react";
import { Badge } from "../ui/badge";

interface DocsHeaderProps {
  title: string;
  description: string;
  icon: ReactNode;
  categories: string[];
}

export const DocsHeader = (props: DocsHeaderProps) => {
  return (
    <div className="flex gap-4 mt-4">
      {props.icon}

      <div>
        <div className="flex gap-4 items-center">
          <h1 className="!mb-0 text-4xl">{props.title}</h1>
          <div className="flex gap-2">
            {props.categories.map((category) => (
              <Badge key={category}>{category}</Badge>
            ))}
          </div>
        </div>
        <p>{props.description}</p>
      </div>
    </div>
  );
};