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.

674 B
Raw Blame
import type { ImportSourceDefinition } from "@/components/import/import-source-definitions";
import type { SourceLogoSize } from "@/components/import/source-logos/source-logo-size";
import { cn } from "@/lib/cn";

type ImportSourceLogoTileProps = {
  source: ImportSourceDefinition;
  size?: SourceLogoSize;
};

export function ImportSourceLogoTile({
  source,
  size = "sm",
}: ImportSourceLogoTileProps) {
  return (
    <span
      className={cn(
        "flex shrink-0 items-center justify-center border border-border bg-background",
        size === "sm" ? "size-8 rounded-lg" : "size-10 rounded-xl",
      )}
    >
      <source.Logo size={size} />
    </span>
  );
}