import FeatureCard, { type FeatureCardItem } from "./FeatureCard";

const features: FeatureCardItem[] = [
  {
    title: "REST API",
    description:
      "Read and update conversations, contacts, bots and workspace data.",
    icon: "/integration/developers/rest-api.svg",
  },
  {
    title: "Webhooks",
    description:
      "Receive real-time events when conversations or automations change.",
    icon: "/integration/developers/webhooks.svg",
  },
  {
    title: "Developer documentation",
    description: "Clear endpoints, examples and authentication guidance.",
    icon: "/integration/developers/docs.svg",
  },
];

const FeatureList = () => {
  return (
    <ul className="mt-6 flex flex-col gap-3 sm:mt-8 sm:gap-4">
      {features.map((feature) => (
        <li key={feature.title}>
          <FeatureCard item={feature} />
        </li>
      ))}
    </ul>
  );
};

export default FeatureList;
