drfeely.com/components/Article.tsx
2023-10-20 14:25:25 -05:00

20 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;