@material-ui/icons#Brightness5 TypeScript Examples

The following examples show how to use @material-ui/icons#Brightness5. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: index.tsx    From anchor-web-app with Apache License 2.0 4 votes vote down vote up
function FooterBase({ className, style }: FooterProps) {
  const { network } = useNetwork();
  const { data: lastSyncedHeight = 0 } = useLastSyncedHeightQuery();

  const {
    target: { isEVM },
  } = useDeploymentTarget();

  const { themeColor, switchable, updateTheme } = useTheme();

  const appVersion = import.meta.env.VITE_APP_VERSION;

  return (
    <footer className={className} style={style}>
      <Info>
        <div className="blocks">
          <a
            href={getBlockUrl(network.chainID, lastSyncedHeight)}
            target="_blank"
            rel="noreferrer"
          >
            <BlockInfo
              chainName={Chain.Terra}
              networkName={network.name}
              blockNumber={lastSyncedHeight}
            />
          </a>

          {isEVM && <EvmBlockInfo />}
        </div>

        {appVersion && <p>{appVersion}</p>}

        <Link to="/terms">Terms</Link>
      </Info>
      <div>
        <IconButton
          component="a"
          href="https://discord.gg/9aUYgpKZ9c"
          target="_blank"
          rel="noreferrer"
        >
          <Discord />
        </IconButton>
        <IconButton
          component="a"
          href="https://twitter.com/anchor_protocol"
          target="_blank"
          rel="noreferrer"
        >
          <Twitter />
        </IconButton>
        <IconButton
          component="a"
          href="https://t.me/anchor_official"
          target="_blank"
          rel="noreferrer"
        >
          <Telegram />
        </IconButton>
        <IconButton
          component="a"
          href="https://github.com/Anchor-Protocol"
          target="_blank"
          rel="noreferrer"
        >
          <GitHub />
        </IconButton>
        {switchable && (
          <IconButton
            onClick={() =>
              updateTheme(themeColor === 'light' ? 'dark' : 'light')
            }
          >
            {themeColor === 'light' ? <Brightness5 /> : <Brightness3 />}
          </IconButton>
        )}
      </div>
    </footer>
  );
}