+ {trendingTopics.length > 0 && !loading ? (
+
+ No new trending topics in the last 24 hours
+ }
+ sx={{ alignSelf: 'flex-end', m: '0 36px 16px 0' }}
+ variant="contained"
+ >
+ Add Content
+
+
+ ) : (
+
+ {loading ? (
+
+
<>
@@ -87,27 +93,27 @@ export const Trending = ({ onSubmit }: Props) => {
>
- ) : (
- <>
- {trendingTopics.map((i) => (
- selectTrending(i.topic)}
- >
- #{i.topic}
- {i.tldr && }
-
- ))}
- >
- )}
-
- )}
-
- )}
+
+ ) : (
+ <>
+ {trendingTopics.map((i) => (
+