1
0
Fork 0
VaultUI/src/elements/HeaderAndContent.ts

24 lines
470 B
TypeScript
Raw Normal View History

2021-05-20 15:15:02 +01:00
import { makeElement } from "z-makeelement";
export function HeaderAndContent(title: string, content: string): HTMLElement {
return makeElement({
tag: "tr",
children: [
makeElement({
tag: "td",
children: makeElement({
tag: "h5",
text: title,
}),
}),
makeElement({
tag: "td",
children: makeElement({
tag: "p",
text: content,
}),
}),
],
});
}