import React from 'react'; import ForkAwesomeIcon from 'soapbox/components/fork-awesome-icon'; import { Widget, Stack, Text } from 'soapbox/components/ui'; import { useInstance, useSettings, useSoapboxConfig } from 'soapbox/hooks'; const PromoPanel: React.FC = () => { const instance = useInstance(); const { promoPanel } = useSoapboxConfig(); const settings = useSettings(); const promoItems = promoPanel.get('items'); const locale = settings.get('locale'); if (!promoItems || promoItems.isEmpty()) return null; return ( {promoItems.map((item, i) => ( {item.textLocales.get(locale) || item.text} ))} ); }; export default PromoPanel;