import { Component, inject } from '@angular/core'; import { successOf } from '@shared/application/remote-data'; import { HeadingComponent } from '@shared/ui/heading/heading.component'; import { SkeletonComponent } from '@shared/ui/skeleton/skeleton.component'; import { ASYNC } from '@shared/ui/async/async.component'; import { BigProfileStore } from '@registratie/application/big-profile.store'; import { RegistrationTableComponent } from '@registratie/ui/registration-table/registration-table.component'; /** Section: "Specialismen en aantekeningen" — a separate resource from the rest of the dashboard (own load/empty/error state), because it is genuinely a second endpoint (`big-register.adapter.ts`), not part of the BFF-lite view call. */ @Component({ selector: 'app-specialismen-section', imports: [HeadingComponent, SkeletonComponent, RegistrationTableComponent, ...ASYNC], template: `
Specialismen en aantekeningen
@if (aantekeningen(); as r) { }

U heeft nog geen specialismen of aantekeningen.

`, }) export class SpecialismenSection { protected store = inject(BigProfileStore); protected aantekeningen = () => successOf(this.store.aantekeningen()); }