import type {BoardArticleListItem} from "../../type/board.types.ts";

type BoardArticleImageListTableRowProps = {
    item: BoardArticleListItem

}

export const BoardArticleImageListTableRow = ({item}: BoardArticleImageListTableRowProps) => {
    return (
        <li>
            <div className="images_area">
                <a href="#" className="link-detail">
                    <img alt={item.nttSj} src={`/uss/ion/image.do?atchFileId=${item.atchFileId}&fileSn=${item.fileSn}`}/>
                </a>
            </div>
            <div className="list_content">
                <b className="list_title">
                    {item.nttSj}
                </b>
                <ul className="list_info">
                    <li>작성자 : {item.frstRegisterNm}</li>
                    <li>조회수 : {item.inqireCo}</li>
                    <li>{item.frstRegisterPnttm}</li>
                </ul>
            </div>
        </li>
    )
}