1234567891011121314151617181920 |
- import type {
- DashboardDetails as TDashboardDetails,
- DashboardFilters as TDashboardFilters,
- Widget as TWidget,
- } from 'sentry/views/dashboards/types';
- export function Dashboard(
- widgets: TWidget[],
- props: Partial<TDashboardDetails> = {}
- ): TDashboardDetails {
- return {
- id: '1',
- filters: [] as TDashboardFilters,
- dateCreated: new Date().toISOString(),
- projects: undefined,
- title: 'Dashboard',
- widgets,
- ...props,
- };
- }
|