import { useCallback } from 'react'; import type { FC } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { cancelPasteLinkCompose } from '@/flavours/glitch/actions/compose_typed'; import { useAppDispatch } from '@/flavours/glitch/store'; import CancelFillIcon from '@/material-icons/400-24px/cancel-fill.svg?react'; import { DisplayName } from 'flavours/glitch/components/display_name'; import { IconButton } from 'flavours/glitch/components/icon_button'; import { Skeleton } from 'flavours/glitch/components/skeleton'; const messages = defineMessages({ quote_cancel: { id: 'status.quote.cancel', defaultMessage: 'Cancel quote' }, }); export const QuotePlaceholder: FC = () => { const intl = useIntl(); const dispatch = useAppDispatch(); const handleQuoteCancel = useCallback(() => { dispatch(cancelPasteLinkCompose()); }, [dispatch]); return (
); };