import React from 'react'; import { useRecoilState } from 'recoil'; import { useLocalize } from '~/hooks'; import { Button } from '~/components'; import store from '~/store'; const ChatDirection = () => { const [direction, setDirection] = useRecoilState(store.chatDirection); const localize = useLocalize(); const toggleChatDirection = () => { setDirection((prev) => (prev === 'LTR' ? 'RTL' : 'LTR')); }; return (