**Showing data of premium users from NEAR Social** ``` const data = Social.get("premium.social.near/badge/premium/accounts/*","final"); if (!data) return "Loading"; ``` - `Social.get()` is a method that retrieves data from the supplied path. In this code, it gets account data for premium users from the "premium.social.near" service. ``` const now = Date.now(); const premiumUsers = Object.entries(data) .filter((item) => item[1] >= now) .sort((a, b) => { if (a[1] < b[1]) return 1; if (a[1] > b[1]) return -1; return 0; }); ``` - `Date.now()` provides the current timestamp in milliseconds since the Unix Epoch. - `Object.entries(data)` converts the "`data`" object into an array of its properties' arrays. Each property (user data) is represented by a [key, value] pair where key corresponds to 'User' and value is 'Premium until'. - Using `filter()`, it removes users who are not premium based on comparing their values with the `now` timestamp. - The `sort()` function sorts the `premiumUsers` array based on the descending order of the expiry timestamp. ``` const getDate = (timestamp) => { /* Code here */ }; ``` - `getDate` is a function that converts a given timestamp into a readable date string. ``` return ( /* JSX Code here */ ); ``` - The `return` statement is outputting JSX (This component is forked from "https://app.jutsu.ai/profile/zavodil.near")