import {GifAttachment} from '@interfaces/attachments';
import {TaggedUser} from '@interfaces/taggedUsers';
import {Comment} from '@interfaces/comments';

type UploadedMultimedia = {
  url: string;
  width: number;
  height: number;
  size: string;
  path: string;
};
export type UploadedImage = UploadedMultimedia & {type: 'IMAGE'};
export type UploadedVideo = UploadedMultimedia & {type: 'VIDEO'};

export interface PublishCommentData {
  attachmentsSize: number;
  commentToEdit: Nullable<Comment>;
  messageBody: string;
  images: UploadedImage[];
  videos: UploadedVideo[];
  taggedUsers: TaggedUser[];
  gif: Nullable<GifAttachment>;
}
