// import { useEffect } from "react"; import { ChatPrefixes } from "../../../app/config"; import { useTranslation } from "react-i18next"; type Props = { context: "user" | "channel", name: string }; const DnDTip = ({ context, name }: Props) => { const { t } = useTranslation("chat"); return (

{`${t("send_to")} ${ChatPrefixes[context]}${name}`}

Photos accept jpg, png, max size limit to 10M.
); }; export default DnDTip;