mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 11:17:49 +01:00
20 lines
480 B
TypeScript
20 lines
480 B
TypeScript
import * as React from 'react';
|
|
|
|
import { TitleText, UppercaseText } from '../shared/CustomTexts';
|
|
|
|
interface Props {
|
|
id: number;
|
|
title: string;
|
|
boardName: string;
|
|
}
|
|
|
|
const PostListItem = ({id, title, boardName}: Props) => (
|
|
<a href={`/posts/${id}`} className="postLink">
|
|
<div className="postListItem d-flex flex-column my-1 py-2">
|
|
<TitleText>{title}</TitleText>
|
|
<UppercaseText>{boardName}</UppercaseText>
|
|
</div>
|
|
</a>
|
|
);
|
|
|
|
export default PostListItem; |