Files
rickvanlieshout.com/src/components/Post/Author/Author.tsx
2025-07-15 17:28:41 +02:00

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;