drfeely.com/website/components/Article.tsx

20 lines
352 B
TypeScript
Raw Normal View History

2023-08-26 02:18:11 +00:00
import { ReactNode } from "react";
interface Props {
title: string;
author: string;
children: ReactNode;
}
const Article = ({ title, author, children }: Props) => {
return (
2023-08-29 19:23:30 +00:00
<article className="ArticleContent min-h-[58.4vh]">
2023-08-29 04:50:52 +00:00
<h1>{title}</h1>
<h6>{author}</h6>
2023-08-26 02:18:11 +00:00
{children}
</article>
);
};
export default Article;