import { Component, inject } from '@angular/core'; import { AfricaniesIconComponent } from '@africanies/africanies-icons'; import { AfricaniesOverlayRef, ButtonComponent, OVERLAY_DATA, } from '@africanies/africanies-ui'; /** Payload for the playground sample modal. */ export interface DemoModalData { shipmentRef: string; } /** Payload for the playground sample drawer. */ export interface DemoDrawerData { facet: string; } /** * Sample modal body — mirrors how consuming apps inject data + close with a result. */ @Component({ selector: 'app-demo-modal-panel', standalone: true, imports: [ButtonComponent, AfricaniesIconComponent], host: { class: 'flex min-h-0 w-full flex-col overflow-hidden', }, template: `
Modal
Hosted via ModalService.open — inject OVERLAY_DATA and AfricaniesOverlayRef to close with a result.
Drawer
Same OverlayOpener contract as modals; panel docks to the right.