import {BoardArticleImageListTableRow} from "./BoardArticleImageListTableRow.tsx";
import type {BoardArticleListItem} from "../type/boardArticle.types.ts";

type BoardArticleImageListTableProps = {
    items: BoardArticleListItem[];
}

export const BoardArticleImageListTable = ({items}: BoardArticleImageListTableProps) => {
    return (
        <ul className={"gallery_list"}>
            {items.length > 0 ? items.map((item, index) =>
                (<BoardArticleImageListTableRow
                    key={index}
                    item={item}
                />)) : null}
        </ul>
    )
}