export type Message = {
  id: string;
  subject?: string;
  content?: string;
  sender_name?: string;
  sender_email?: string;
  read?: boolean;
  created_at?: string;
};

// Minimal placeholder message service so pages can import it.
// TODO: replace with real implementation that calls the backend API.
export const messageService = {
  async getReceivedMessages(_userId: string): Promise<Message[]> {
    // return empty list by default
    return [];
  },
  async getUnreadMessages(_userId: string): Promise<Message[]> {
    return [];
  },
  async markAsRead(_messageId: string): Promise<void> {
    return;
  },
  async markAsUnread(_messageId: string): Promise<void> {
    return;
  },
  async delete(_messageId: string): Promise<void> {
    return;
  },
};
