import React from 'react'; import { FormattedMessage } from 'react-intl'; import { Banner, Button, HStack, Stack, Text } from 'soapbox/components/ui'; import { useAppSelector, useInstance, useRegistrationStatus, useSoapboxConfig } from 'soapbox/hooks'; const CtaBanner = () => { const instance = useInstance(); const { isOpen } = useRegistrationStatus(); const { displayCta } = useSoapboxConfig(); const me = useAppSelector((state) => state.me); if (me || !displayCta || !isOpen) return null; return (