text: import React from 'react';
  import Link from 'gatsby-link';
  
  const AllTags = ({ pathContext }) => {
    const { posts, tags } = pathContext;
  
    if (tags) {
      // console.log('POSTS FOR TAGS', posts.length)
      return (
        <div>
          <ul>
            {tags.map(tag => {
              return (
                <li>
                  <Link to={`/tags/${tag}`}>
                    {tag}
                  </Link>
                </li>
              )
            })}
          </ul>
        </div>
      );
    }
  };
  
  export default AllTags;