import React from 'react';
import type { ApiBoard, ApiTableCard, ApiWonder } from '../../api/model';
import './Board.css'
import { CardImage } from './CardImage';
// card offsets in % of their size when displayed in columns
const xOffset = 20;
const yOffset = 21;
type BoardProps = {
board: ApiBoard,
}
export const Board = ({board}: BoardProps) => {
return
;
};
type TableCardsProps = {
cardColumns: ApiTableCard[][],
}
const TableCards = ({cardColumns}: TableCardsProps) => {
return
{cardColumns.map(column =>
)}
};
type TableCardColumnProps = {
cards: ApiTableCard[]
}
const TableCardColumn = ({cards}: TableCardColumnProps) => {
return
};
type TableCardProps = {
card: ApiTableCard,
indexInColumn: number,
}
const TableCard = ({card, indexInColumn}: TableCardProps) => {
let style = {
transform: `translate(${indexInColumn * xOffset}%, ${indexInColumn * yOffset}%)`,
zIndex: indexInColumn,
};
return
};
type WonderProps = {
wonder: ApiWonder,
}
const Wonder = ({wonder}: WonderProps) => {
return
};