--- // 全期間の議案賛否一覧。年度別ページの表から安竹洋平の列だけを取り出し、 // 市側の議案・議員提出の議案・請願に分けて表示する。 import { computeSanpiBills, type BillType } from "@/utils/sanpiStats"; interface Props { type: BillType; } const { type } = Astro.props; const rows = computeSanpiBills().filter((row) => row.type === type); const PASS = ["可決", "認定", "採択", "同意", "承認"]; const STOP = ["否決", "不採択"]; function kekkaClass(result: string): string { if (STOP.some((key) => result.includes(key))) return "stop"; if (PASS.some((key) => result.includes(key))) return "pass"; return ""; } ---
| 議案 | 年度 | 定例会 | 議決結果 | 安竹 |
|---|---|---|---|---|
| {row.title} | {row.year} | {row.session} | {row.result} | {row.me} |