drfeely.com/website/components/Article.tsx
2023-09-05 12:34:41 -05:00

19 lines
337 B
TypeScript

import { ReactNode } from "react";
interface Props {
title: string;
author: string;
children: ReactNode;
}
const Article = ({ title, author, children }: Props) => {
return (
<article className="ArticleContent">
<h1>{title}</h1>
<h6>{author}</h6>
{children}
</article>
);
};
export default Article;