mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 11:47:56 +01:00
18 lines
396 B
TypeScript
18 lines
396 B
TypeScript
import * as React from 'react';
|
|
|
|
interface Props {
|
|
id: number;
|
|
title: string;
|
|
boardName: string;
|
|
}
|
|
|
|
const PostListItem = ({id, title, boardName}: Props) => (
|
|
<a href={`/posts/${id}`} className="postLink">
|
|
<div className="postListItem">
|
|
<div className="postTitle">{title}</div>
|
|
<div className="postBoard">{boardName}</div>
|
|
</div>
|
|
</a>
|
|
);
|
|
|
|
export default PostListItem; |