import { createDomainGuard } from '@meshkee/dashboard-ui'
import { getCustomerDashboardHostForApp, isAllowedCustomerHost } from '../lib/config'

export const CustomerDomainGuard = createDomainGuard({
  isAllowedHost: isAllowedCustomerHost,
  getExpectedHost: getCustomerDashboardHostForApp,
  dashboardLabel: 'customer dashboard',
})
