import { IResponse } from "../../../../types/response.types";

export type TaskCommentAuthorType = {
  id: string;
  firstName: string;
  lastName: string;
  profilePic?: string | null;
};

export type TaskCommentType = {
  id: string;
  content: string;
  taskId: string;
  userId?: string;
  user?: TaskCommentAuthorType;
  createdAt: string;
  updatedAt?: string;
};

export type CreateTaskCommentType = {
  content: string;
  taskId: string;
};

export type UpdateTaskCommentType = {
  content: string;
};

export interface GetTaskCommentsResponse extends IResponse<TaskCommentType[]> {
  statusCode: number;
}

export interface CreateTaskCommentResponse extends IResponse<TaskCommentType> {
  statusCode: number;
}

export interface UpdateTaskCommentResponse extends IResponse<TaskCommentType> {
  statusCode: number;
}
