SPB Git

spb/phi-conseil

Public
1.2 KB · 58 lines tsx
1import type { ServiceIcon as IconName } from "@/lib/content";23const paths: Record<IconName, React.ReactNode> = {4  search: (5    <>6      <circle cx="11" cy="11" r="6.5" />7      <path d="m16 16 5 5" />8      <path d="M8.5 11a2.5 2.5 0 0 1 2.5-2.5" />9    </>10  ),11  "document-edit": (12    <>13      <path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-9" />14      <path d="M14 3v5h5" />15      <path d="M8.5 13h4M8.5 16.5h3" />16      <path d="m19.5 9.5-6 6-1.5 3 3-1.5 6-6a1.06 1.06 0 0 0-1.5-1.5Z" />17    </>18  ),19  chart: (20    <>21      <path d="M4 20h16" />22      <path d="M6 17v-5M11 17V9M16 17v-3" />23      <path d="m5 10 5-4 4 3 6-5" />24      <path d="M17 4h3v3" />25    </>26  ),27  "check-circle": (28    <>29      <circle cx="12" cy="12" r="8.5" />30      <path d="m8.5 12.2 2.4 2.4 4.8-5" />31    </>32  ),33};3435export function ServiceIcon({36  name,37  className = "h-7 w-7",38}: {39  name: IconName;40  className?: string;41}) {42  return (43    <svg44      className={className}45      viewBox="0 0 24 24"46      fill="none"47      stroke="currentColor"48      strokeWidth="1.5"49      strokeLinecap="round"50      strokeLinejoin="round"51      aria-hidden="true"52      focusable="false"53    >54      {paths[name]}55    </svg>56  );57}58
Files · main
Menu

Theme