mirror of
				https://github.com/mastermindzh/rickvanlieshout.com
				synced 2025-10-31 00:29:46 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			648 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			648 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import React from "react";
 | |
| import * as styles from "./Author.module.scss";
 | |
| import { useSiteMetadata } from "@/hooks";
 | |
| 
 | |
| const Author = () => {
 | |
|   const { author } = useSiteMetadata();
 | |
| 
 | |
|   return (
 | |
|     <div className={styles.author}>
 | |
|       <p className={styles.bio}>
 | |
|         Written by:{" "}
 | |
|         <a href="/pages/about/">
 | |
|           <strong>{author.name}</strong>
 | |
|         </a>
 | |
|         {typeof window !== "undefined" ? (
 | |
|           // eslint-disable-next-line no-undef
 | |
|           <span className="showInPrintView"> {window ? `@ ${window.location}` : ""}</span>
 | |
|         ) : (
 | |
|           ""
 | |
|         )}
 | |
|       </p>
 | |
|     </div>
 | |
|   );
 | |
| };
 | |
| 
 | |
| export default Author;
 |