import { htmlAttributes } from "../html/html-attributes";
export class Bold {
attributes: Record;
children: any[];
constructor(attributes: Record = {}) {
this.children = [];
this.attributes = attributes;
}
get render(): string {
return `${this.children.map(child => child.render).join("")}`;
}
add(child: any): Bold {
this.children.push(child);
return this;
}
}