mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
26 lines
754 B
TypeScript
26 lines
754 B
TypeScript
import { Component } from '@angular/core';
|
|
import { ThemedComponent } from '../shared/theme-support/themed.component';
|
|
import { HeaderComponent } from './header.component';
|
|
|
|
/**
|
|
* Themed wrapper for HeaderComponent
|
|
*/
|
|
@Component({
|
|
selector: 'ds-themed-header',
|
|
styleUrls: [],
|
|
templateUrl: '../shared/theme-support/themed.component.html',
|
|
})
|
|
export class ThemedHeaderComponent extends ThemedComponent<HeaderComponent> {
|
|
protected getComponentName(): string {
|
|
return 'HeaderComponent';
|
|
}
|
|
|
|
protected importThemedComponent(themeName: string): Promise<any> {
|
|
return import(`../../themes/${themeName}/app/header/header.component`);
|
|
}
|
|
|
|
protected importUnthemedComponent(): Promise<any> {
|
|
return import(`./header.component`);
|
|
}
|
|
}
|