import { Badge } from "./Badge.tsx"; export interface RuleData { code: string; snippet: string; docs: string; tags: string[]; } export interface RuleProps { rule: RuleData; open?: boolean; } export function Rule(props: RuleProps) { const { rule } = props; return (

{rule.code}

{rule.tags.includes("recommended") && Recommended} {rule.tags.includes("fresh") && Fresh}
{rule.docs.length > 0 ? ( <>
) :
no docs available
}
); }