2019-08-26 14:29:56 +02:00
|
|
|
import * as React from 'react';
|
|
|
|
|
|
2019-09-15 18:26:51 +02:00
|
|
|
import { TitleText, UppercaseText } from '../shared/CustomTexts';
|
|
|
|
|
|
2019-08-26 14:29:56 +02:00
|
|
|
interface Props {
|
2019-09-12 15:51:45 +02:00
|
|
|
id: number;
|
2019-08-26 14:29:56 +02:00
|
|
|
title: string;
|
|
|
|
|
boardName: string;
|
|
|
|
|
}
|
|
|
|
|
|
2019-09-12 15:51:45 +02:00
|
|
|
const PostListItem = ({id, title, boardName}: Props) => (
|
|
|
|
|
<a href={`/posts/${id}`} className="postLink">
|
2019-09-15 18:26:51 +02:00
|
|
|
<div className="postListItem d-flex flex-column my-1 py-2">
|
|
|
|
|
<TitleText>{title}</TitleText>
|
|
|
|
|
<UppercaseText>{boardName}</UppercaseText>
|
2019-08-26 14:29:56 +02:00
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
export default PostListItem;
|