import { Avatar } from "./Avatar"; import {AuthorByName} from "../content/authors"; import Head from "next/head"; import { useConfig } from "nextra-theme-docs"; import { Title as CaseStudyTitle } from "./Title"; type PostMeta = { title: string; /** security */ tag: string; description: string; /** yevgenypats */ author?: string; /** /images/og-image.png */ ogImage?: string; }; function Authors({ data }: { data: PostMeta }) { const authorName = data?.author; if (!authorName) { return null; } const authorNames = authorName.split(",").map((name) => name.trim()); const authors = authorNames.map((name) => AuthorByName(name)); return (