import { Card, CardContent, CardHeader, CardTitle } from "./ui/card"; import { ReactElement } from "react"; import { RiTeamFill } from "react-icons/ri"; import { PiTreeStructure } from "react-icons/pi"; import { BsCalendar4Week } from "react-icons/bs"; import { MdOutlineScoreboard } from "react-icons/md"; interface FeatureProps { icon: ReactElement; title: string; description: string; } const features: FeatureProps[] = [ { icon: , title: "Add teams", description: "Register teams (and optionally players). You can upload a CSV file with all teams and players at once.", }, { icon: , title: "Choose format", description: "Add swiss, elimination or round-robing items to the tournament. Multiple stages are supported.", }, { icon: , title: "Schedule matches", description: "Use the drag&drop interface to choose the courts and start times of the matches.", }, { icon: , title: "Track scores & publish", description: "Enter the scores, customize the ranking and show it to the world on a dashboard.", }, ]; export const HowItWorks = () => { return (

How It{" "} Works{" "}

{features.map(({ icon, title, description }: FeatureProps) => ( {icon} {title} {description} ))}
); };