1
0
Fork 0
VaultUI/src/ui/elements/HeaderAndContent.tsx
2021-11-21 11:06:10 +00:00

20 lines
332 B
TypeScript

import { JSX } from "preact";
export type HeaderAndContentProps = {
title: string;
content: string;
};
export function HeaderAndContent(props: HeaderAndContentProps): JSX.Element {
return (
<tr>
<td>
<h5>{props.title}</h5>
</td>
<td>
<p>{props.content}</p>
</td>
</tr>
);
}