import React from 'react'; import Modal from 'react-modal'; import { useSelector } from 'react-redux'; import { FiX } from 'react-icons/fi'; import Text from 'components/Text'; import Button from 'components/ui/Button'; import useModal from 'components/modals/useModal'; import { getSelectedChannel } from 'state/channels'; import { linkify } from 'utils'; import colorify from 'utils/colorify'; const Topic = () => { const [modal, channel, closeModal] = useModal('topic'); const topic = useSelector(state => getSelectedChannel(state)?.topic); return (

Topic in {channel}

{colorify(linkify(topic))}

); }; export default Topic;