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.

509 B
Raw Blame
import type { ComponentProps } from "react";
import { cn } from "@/lib/cn";

type SettingsCardProps = ComponentProps<"div"> & {
  tone?: "default" | "danger";
};

export function SettingsCard({
  tone = "default",
  className,
  ...props
}: SettingsCardProps) {
  return (
    <div
      className={cn(
        "divide-y divide-border overflow-hidden rounded-xl border bg-card",
        tone === "danger" ? "border-destructive/20" : "border-border",
        className,
      )}
      {...props}
    />
  );
}