import { useState } from "react";
import { FiCornerDownRight } from "react-icons/fi";
import { getUserColor } from "../../utils/userColor";
const quickReactions = ["👍", "❤️", "😂", "😮", "😢", "🔥"];
/**
* Reply preview shown below sender info
*/
export function ReplyPreview({ replyTo, isDark }) {
if (!replyTo) return null;
const replyColor = getUserColor(replyTo.sender);
return (
{replyTo.sender}
{replyTo.content}
);
}
/**
* Reaction bar showing existing reactions
*/
export function ReactionBar({ reactions, onAddReaction, isDark }) {
return (
{reactions?.map((reaction, idx) => (
))}
);
}
/**
* Reaction picker popup
*/
export function ReactionPicker({ show, onSelect, isDark }) {
if (!show) return null;
return (
{quickReactions.map((emoji) => (
))}
);
}
/**
* Action buttons shown on hover (reply, edit, reactions)
*/
export function MessageActions({
show,
isDark,
isOwnMessage,
}) {
if (!show) return null;
return (
Tùy chọn tạm ẩn
);
}