repo_description: Hey is a decentralized and permissionless social media app built with Lens Protocol 🌿
repo_topics: blockchain crypto dapp graphql hacktoberfest lens-protocol nextjs react social-media tailwindcss turborepo typescript vitest wagmi web3
code: import getAccount from "@/helpers//getAccount";
  import type { AccountFragment } from "@/indexer/generated";
  
  const formatMessage = (
    account: AccountFragment,
    formatter: (username: string) => string
  ): string => {
    const { username } = getAccount(account);
  
    return formatter(username);
  };
  
  export const getBlockedByMeMessage = (account: AccountFragment): string =>
    formatMessage(account, (username) => `You have blocked ${username}`);
  
  export const getBlockedMeMessage = (account: AccountFragment): string =>
    formatMessage(account, (username) => `${username} has blocked you`);
  