import { ChangeDetectionStrategy, Component, computed, input, } from '@angular/core'; /** * */ export type BrandLogoSize = 'sm' | 'md' | 'lg'; /** * Default AFRICANIES wordmark — inlined so it works without copying static assets. * * Override with a custom `logoSrc` on {@link SideNavComponent} when the host * ships its own mark. */ @Component({ selector: 'africanies-brand-logo', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'inline-flex shrink-0 items-center', role: 'img', 'aria-label': 'Africanies', }, template: ` `, }) /** * Default AFRICANIES wordmark — inlined so it works without copying static assets. */ export class BrandLogoComponent { readonly size = input('md'); protected readonly svgClass = computed(() => { switch (this.size()) { case 'sm': return 'h-5 w-auto'; case 'lg': return 'h-8 w-auto'; default: return 'h-6 w-auto'; } }); }