import { Story , Meta } from "@storybook/angular/types-6-0" ; import { moduleMetadata } from "@storybook/angular" ; import { RouterTestingModule } from "@angular/router/testing" ; import { Angulartics2Module } from "angulartics2" ; import { DashboardShortcutWidgetModule } from "../dashboard-shortcut-widget.module" ; import { DashboardShortcutWidgetComponent } from "./dashboard-shortcut-widget.component" ; import { MenuItem } from "../../navigation/menu-item" ; export default { title : "Core/ShortcutDashboardWidget" , component : DashboardShortcutWidgetComponent , decorators : [ moduleMetadata ( { imports : [ DashboardShortcutWidgetModule , RouterTestingModule , Angulartics2Module . forRoot ( ) , ] , } ) , ] , } as Meta ; const Template = ( args ) => ( { component : DashboardShortcutWidgetComponent , props : args , } ) ; export const Primary = Template . bind ( { } ) ; Primary . args = { shortcuts : [ { label : "Record Attendance" , icon : "calendar-check-o" , link : "/attendance/add/day" , } , { label : "All Notes" , icon : "file-text" , link : "/note" , } , ] as MenuItem [ ] , } ;