'use client'; import { Heading } from '@/ui/Heading'; import { Stack } from '@/ui/Stack'; import { Text } from '@/ui/Text'; import { Info, Shield } from 'lucide-react'; interface Rule { id: string; title: string; content: string; } interface LeagueRulesPanelProps { rules: Rule[]; } export function LeagueRulesPanel({ rules }: LeagueRulesPanelProps) { return ( Code of Conduct All drivers are expected to maintain a high standard of sportsmanship. Intentional wrecking or abusive behavior will result in immediate disqualification. {rules.map((rule) => ( {rule.title} {rule.content} ))} ); }