export default function MessageDispatcher({ message }: { message: any }) { const messageType = message?.groups?.[0]?.units?.[0]?.type; let nick = "wait"; let content = "wait"; if (message?.type === 'sauth_ret') { return
{message?.data?.em}
} if (messageType === "Message") { nick = message?.groups?.[0]?.nick; content = message?.groups?.[0]?.units?.[0]?.["Msg.Message.data"]?.text; } return (
{nick}: {content}
); }