import type { ComponentType } from "react";
import type { IconProps } from "@/components/icons";
import { IconBadge } from "@/components/shared/icon-badge";

type AboutHighlightProps = { icon: ComponentType<IconProps>; title: string; description: string };

export function AboutHighlight({ icon: Icon, title, description }: AboutHighlightProps) {
  return (
    <li className="flex items-start gap-3">
      <IconBadge size="sm" tone="primary" className="mt-0.5">
        <Icon />
      </IconBadge>
      <div className="max-w-[265px]">
        <h3 className="text-sm leading-5 font-semibold text-heading">{title}</h3>
        <p className="max-w-[222px] pt-0.5 text-xs leading-[19.5px] text-subtle">{description}</p>
      </div>
    </li>
  );
}
