import { Dashboard } from '../tuples/dashboard-types' ; export const buildDashboardShareUrl = async ( dashboard ) : Promise < string > => { const { protocol , host } = window . location ; return `${ protocol }//${ host }/share/dashboard/${ dashboard . dashboardId }` ; } ;