import React from 'react'; import { defineMessages, useIntl } from 'react-intl'; import ComposeFormButton from './compose_form_button'; const messages = defineMessages({ marked: { id: 'compose_form.spoiler.marked', defaultMessage: 'Text is hidden behind warning' }, unmarked: { id: 'compose_form.spoiler.unmarked', defaultMessage: 'Text is not hidden' }, }); interface ISpoilerButton { active?: boolean, onClick: () => void, } const SpoilerButton: React.FC = ({ active, onClick }) => { const intl = useIntl(); return ( ); }; export default SpoilerButton;