Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

601 B
Raw Blame
import { CardGrid } from '@/components/blocks/card-grid';
import type { CompareUseCases } from '@/lib/compare';

// Who OpenPanel fits better, as plain cards. The replicas live in the
// pillars above, so these stay text.
export function UseCases({ useCases }: { useCases: CompareUseCases }) {
  return (
    <CardGrid
      columns={useCases.items.length % 3 === 0 ? 3 : 2}
      description={useCases.intro}
      items={useCases.items.map((item) => ({
        title: item.title,
        description: item.description,
      }))}
      label="Who it fits"
      title={useCases.title}
    />
  );
}