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'; const Topic = () => { const [modal, channel, closeModal] = useModal('topic'); const topic = useSelector(state => getSelectedChannel(state)?.topic); return (

Topic in {channel}

{linkify(topic)}

); }; export default Topic;