import initMatrix from '../../../client/initMatrix';
import settings from '../../../client/state/settings';
+import { toggleMarkdown } from '../../../client/action/settings';
import Text from '../../atoms/text/Text';
import IconButton from '../../atoms/button/IconButton';
import Button from '../../atoms/button/Button';
+import Toggle from '../../atoms/button/Toggle';
import SegmentedControls from '../../atoms/segmented-controls/SegmentedControls';
import PopupWindow, { PWContentSelector } from '../../molecules/popup-window/PopupWindow';
import CinnySVG from '../../../../public/res/svg/cinny.svg';
function AppearanceSection() {
+ const [, updateState] = useState({});
+
return (
<div className="settings-content">
<SettingTile
/>
)}
/>
+ <SettingTile
+ title="Markdown formatting"
+ options={(
+ <Toggle
+ isActive={settings.isMarkdown}
+ onToggle={(isMarkdown) => { toggleMarkdown(isMarkdown); updateState({}); }}
+ />
+ )}
+ content={<Text variant="b3">Format messages with markdown syntax before sending.</Text>}
+ />
</div>
);
}