import {GameData} from "../_utils/game.ts" import {ReviewData} from "../_utils/review.ts"; import { ReviewRow, ReviewRowColumnKind, reviewRowColumnKindDefault, ReviewRowColumnPriority } from "./ReviewRow.tsx"; export type ReviewTableProps = { id?: string, reviews: ReviewData[], columns?: ReviewRowColumnKind[] priority?: ReviewRowColumnPriority } export function ReviewTable({id, reviews, columns = reviewRowColumnKindDefault, priority}: ReviewTableProps) { const colElements = columns.map((column, index) => { switch(column) { case "rating": return (