/** * @license * Copyright Akveo. All Rights Reserved. * Licensed under the MIT License. See License.txt in the project root for license information. */ import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; /** * Chat message component. */ @Component({ selector: 'nb-chat-message-text', template: `

{{ sender }}

{{ message }}

`, changeDetection: ChangeDetectionStrategy.OnPush, }) export class NbChatMessageTextComponent { /** * Message sender * @type {string} */ @Input() sender: string; /** * Message sender * @type {string} */ @Input() message: string; /** * Message send date * @type {Date} */ @Input() date: Date; /** * Message send date format, default 'shortTime' * @type {string} */ @Input() dateFormat: string = 'shortTime'; }