import type { Method, Playbill } from "@proscenium/playbill"; import { AbilityCard } from "./ability"; import { Section } from "./base/section"; interface MethodSectionProps { method: Method; playbill: Playbill; } export function MethodSection({ method, playbill }: MethodSectionProps) { const ranks = method.abilities.map((rank, i) => { const gridTemplateColumns = new Array(Math.min(rank.length, 3)) .fill("1fr") .join(" "); return (

Rank {i + 1}

{rank.map((abilityId) => { const ability = playbill.abilities[abilityId]; return ; })}
); }); return (
{method.curator}'s Method of

} info={

} >

{ranks}
); }