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