dashboard.js 237 B

12345678910111213
  1. import {Widget} from './widget';
  2. const DEFAULT_WIDGETS = [Widget()];
  3. export function Dashboard(widgets = DEFAULT_WIDGETS, props = {}) {
  4. return {
  5. id: 1,
  6. title: 'Dashboard',
  7. createdBy: '',
  8. widgets,
  9. ...props,
  10. };
  11. }