Files
astuto/app/javascript/components/Roadmap/PostListItem.tsx
2019-09-12 15:51:45 +02:00

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;