This commit is contained in:
Dave
2025-12-30 13:41:26 -05:00
parent 4a7bb07345
commit 2c7b328596
10 changed files with 292 additions and 80 deletions

View File

@@ -0,0 +1,23 @@
import { MailOutlined } from "@ant-design/icons";
import { Button, Tooltip } from "antd";
import { useTranslation } from "react-i18next";
export default function ChatMarkUnreadButton({ disabled, loading, onMarkUnread }) {
const { t } = useTranslation();
return (
<Tooltip title={t("messaging.labels.mark_unread")}>
<Button
size="small"
icon={<MailOutlined />}
loading={loading}
disabled={disabled}
onMouseDown={(e) => e.stopPropagation()} // prevent parent mark-read handler
onClick={(e) => {
e.stopPropagation();
onMarkUnread?.();
}}
/>
</Tooltip>
);
}