import { ToolButton, ViewManager, View } from "@paperbits/common/ui"; const helpText = "
Add or edit pages of your website. Each page has a unique URL, which also automatically defines the layout it is part of.
"; export class PagesToolButton implements ToolButton { public readonly iconClass: string = "paperbits-icon paperbits-menu-4"; public readonly title: string = "Pages"; public readonly tooltip: string = helpText; constructor(private readonly viewManager: ViewManager) { } public onActivate(): void { this.viewManager.clearJourney(); const view: View = { heading: this.title, helpHeading: this.title, helpText: helpText, helpArticle: "/pages", component: { name: "pages" } }; this.viewManager.openViewAsWorkshop(view); } }