export class TenantService extends Context.Tag('TenantService')<TenantService, Ref.Ref<TenantData>>() {
static readonly Live = (tenantId: TenantId) =>
makTenantService(tenantId).pipe(Layer.scoped(this), Layer.provide(SecretService.Live))
static readonly Layer = (tenantId: TenantId) => makTenantService(tenantId).pipe(Layer.scoped(this))
}
export class TenantService extends Context.Tag('TenantService')<TenantService, Ref.Ref<TenantData>>() {
static readonly Live = (tenantId: TenantId) =>
makTenantService(tenantId).pipe(Layer.scoped(this), Layer.provide(SecretService.Live))
static readonly Layer = (tenantId: TenantId) => makTenantService(tenantId).pipe(Layer.scoped(this))
}