import React from 'react'; import { FormattedMessage } from 'react-intl'; import { Modal } from 'soapbox/components/ui'; import { useAppSelector } from 'soapbox/hooks'; import { getFeatures } from 'soapbox/utils/features'; interface IHotkeysModal { onClose: () => void, } const HotkeysModal: React.FC = ({ onClose }) => { const features = useAppSelector((state) => getFeatures(state.instance)); return ( } onClose={onClose} >
{features.emojiReacts && ( )}
r
m
p
f
e
b
enter, o
a
{features.spoilers && ( )} {features.spoilers && ( )}
x
h
up, k
down, j
n
alt + n
backspace
s
esc
g + h
g + n
g + f
g + p
g + u
g + b
g + m
g + r
?
); }; export default HotkeysModal;