Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

592 B
Raw Blame
import { InfoIcon, type LucideIcon } from "lucide-react";
import type { ReactNode } from "react";
import { cn } from "@/lib/cn";

type SettingsNoteProps = {
  children: ReactNode;
  icon?: LucideIcon;
  className?: string;
};

export function SettingsNote({
  children,
  icon: Icon = InfoIcon,
  className,
}: SettingsNoteProps) {
  return (
    <p
      className={cn(
        "flex items-start gap-2 px-0.5 text-xs text-muted-foreground",
        className,
      )}
    >
      <Icon aria-hidden="true" className="mt-px size-3.5 shrink-0" />
      <span>{children}</span>
    </p>
  );
}