MCPcopy Create free account
hub / github.com/dailydotdev/apps / FeedEmptyScreen

Function FeedEmptyScreen

packages/shared/src/components/FeedEmptyScreen.tsx:11–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9import { useAuthContext } from '../contexts/AuthContext';
10
11function 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
33export default FeedEmptyScreen;

Callers

nothing calls this directly

Calls 1

useAuthContextFunction · 0.90

Tested by

no test coverage detected