import {Component, input} from '@angular/core';
import {DatePipe} from '@angular/common';
import {ChatMessage} from '@pages/altitude/chat/objects/chat-message.object';
import {MiniMessageComponent} from '@pages/altitude/chat/components/mini-message/mini-message.component';

@Component({
  selector: 'app-chat-box',
  imports: [
    MiniMessageComponent,
    DatePipe
  ],
  templateUrl: './chat-box.component.html',
  styleUrl: './chat-box.component.scss'
})
export class ChatBoxComponent {
  readonly messages = input.required<ChatMessage[]>();
}
