/** Shapes and constants lifted out of the component of the same name. */

import type { CommunityEntityId, CommunityReplyView } from "@/features/community/communityRecord";

/**
 * A reply, as the UI holds it.
 *
 * `CommunityReplyView` — the transcription of `WebsiteReplyResource` plus the
 * client-only extras — rather than a local shape. This interface existed
 * twice, byte-identical, and both copies disagreed with the resource: they
 * required `user` (which is `null` when the row has no author) and
 * `user.profile_pic` / `text_en` / `text_ar` as `string` (all nullable), they
 * omitted `post_id` and `parent_id` entirely, and they declared `is_deleted`
 * and `parent_is_deleted` as required booleans the API never sends.
 */
export type Reply = CommunityReplyView;

export interface ReplyDetailPageProps {
  postId: CommunityEntityId;
  replyId: CommunityEntityId;
}
