diff --git a/src/pages/hashtag.jsx b/src/pages/hashtag.jsx
index a4d7b67a..d2ec714e 100644
--- a/src/pages/hashtag.jsx
+++ b/src/pages/hashtag.jsx
@@ -140,6 +140,26 @@ function Hashtags({ media: mediaView, columnMode, ...props }) {
const reachLimit = hashtags.length >= TOTAL_TAGS_LIMIT;
+ const [featuredUIState, setFeaturedUIState] = useState('default');
+ const [featuredTags, setFeaturedTags] = useState([]);
+ const [isFeaturedTag, setIsFeaturedTag] = useState(false);
+ useEffect(() => {
+ if (!authenticated) return;
+ (async () => {
+ try {
+ const featuredTags = await masto.v1.featuredTags.list();
+ setFeaturedTags(featuredTags);
+ setIsFeaturedTag(
+ featuredTags.some(
+ (tag) => tag.name.toLowerCase() === hashtag.toLowerCase(),
+ ),
+ );
+ } catch (e) {
+ console.error(e);
+ }
+ })();
+ }, []);
+
return (
)}
+
>
)}