drfeely.com/website/components/Article.tsx

20 lines
337 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-09-05 17:34:41 +00:00
<article className="ArticleContent">
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;