import isEmpty from "lodash/isEmpty";
export const useVerified = (usernames) => {
    const whitelistMembers = []; //map(useCachedDaoWhitelist().rows as string[], "user");
    const verifiedUsers = isEmpty(usernames) ? undefined : usernames?.filter((user) => whitelistMembers.includes(user));
    return { verifiedUsers };
};
export const useVerifiedPosts = (posts) => {
    const postUsers = posts.map((p) => p?.author?.username);
    const { verifiedUsers } = useVerified(postUsers);
    return { verifiedUsers };
};
//# sourceMappingURL=useVerified.js.map