()
| 9 | import { useAuthContext } from '../contexts/AuthContext'; |
| 10 | |
| 11 | function FeedEmptyScreen(): ReactElement | null { |
| 12 | const { user } = useAuthContext(); |
| 13 | |
| 14 | if (!user) { |
| 15 | return null; |
| 16 | } |
| 17 | |
| 18 | return ( |
| 19 | <CharmEmptyState |
| 20 | placement={CharmEmptyStatePlacement.Page} |
| 21 | image={cloudinaryCharmNotEnoughTags} |
| 22 | imageAlt="daily.dev charm holding tags" |
| 23 | title="Your feed filters are too specific." |
| 24 | description="We couldn't fetch enough posts based on your selected tags. Try adding more tags using the feed settings." |
| 25 | action={{ |
| 26 | label: 'Feed filters', |
| 27 | href: `${webappUrl}feeds/${user.id}/edit`, |
| 28 | }} |
| 29 | /> |
| 30 | ); |
| 31 | } |
| 32 | |
| 33 | export default FeedEmptyScreen; |
nothing calls this directly
no test coverage detected