mirror of
https://github.com/bitwarden/browser
synced 2026-02-14 23:45:37 +00:00
21 lines
732 B
TypeScript
21 lines
732 B
TypeScript
import { Observable } from "rxjs";
|
|
|
|
import { AnonLayoutWrapperData } from "./anon-layout-wrapper.component";
|
|
|
|
/**
|
|
* A simple data service to allow any child components of the AnonLayoutWrapperComponent to override
|
|
* page route data and dynamically control the data fed into the AnonLayoutComponent via the AnonLayoutWrapperComponent.
|
|
*/
|
|
export abstract class AnonLayoutWrapperDataService {
|
|
/**
|
|
*
|
|
* @param data - The data to set on the AnonLayoutWrapperComponent to feed into the AnonLayoutComponent.
|
|
*/
|
|
abstract setAnonLayoutWrapperData(data: AnonLayoutWrapperData): void;
|
|
|
|
/**
|
|
* Reactively gets the current AnonLayoutWrapperData.
|
|
*/
|
|
abstract anonLayoutWrapperData$(): Observable<AnonLayoutWrapperData>;
|
|
}
|