synapsecns/sanguine

View on GitHub
packages/explorer-ui/components/misc/PageLink.tsx

Summary

Maintainability
A
0 mins
Test Coverage
export const PageLink = ({ text, url, external = false }) => {
  if (external) {
    return (
      <div className="mt-2 mb-14">
        <a
          className="text-white text-opacity-100 hover:text-opacity-90 hover:underline"
          href={url}
          target="_blank"
          rel="noreferrer"
        >
          {text}
        </a>
      </div>
    )
  } else {
    return (
      <div className="mt-2 mb-14 ">
        <a
          href={url}
          className="text-white text-opacity-100 hover:text-opacity-90 hover:underline"
        >
          {text}
        </a>
      </div>
    )
  }
}