mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-12 03:07:05 +00:00
24 lines
793 B
TypeScript
24 lines
793 B
TypeScript
![]() |
import Component from '@glimmer/component';
|
||
|
|
||
|
// Styling class name for template
|
||
|
export const baseClass = 'read-only-email-content';
|
||
|
|
||
|
interface IReadOnlyEmailContentArgs {
|
||
|
// Category that the email corresponds to
|
||
|
type: Com.Linkedin.DataConstructChangeManagement.Category;
|
||
|
// Subject of the email
|
||
|
subject: string;
|
||
|
// Core content of the email
|
||
|
content: string;
|
||
|
// Optional styling param that maybe injected in
|
||
|
stylingClass?: string;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Simple presentational component that is meant to display the contents of a email notification
|
||
|
*/
|
||
|
export default class ReadOnlyEmailContent extends Component<IReadOnlyEmailContentArgs> {
|
||
|
// Styling class that defaults to `baseClass` , optionally might be an input to the component
|
||
|
baseClass = this.args.stylingClass || baseClass;
|
||
|
}
|