Files
v0 f4eb39070f fix: implement inline Avatar component in author-note.tsx
Replace missing Avatar component with simple Next.js Image implementation.

Co-authored-by: Matt Collier <2234289+mattc0llier@users.noreply.github.com>
2026-02-10 08:15:40 +00:00

48 lines
1.1 KiB
TypeScript

import type { ReactNode } from "react";
import Image from "next/image";
type AuthorNoteProps = {
name: string;
role: string;
githubUsername: string;
children: ReactNode;
link: string;
};
export const AuthorNote = ({
name,
role,
githubUsername,
children,
link,
}: AuthorNoteProps) => (
<aside
aria-label="Author's Note"
className="not-prose my-8 flex flex-col gap-4 border-l-3 p-4 pl-6"
>
<blockquote className="mb-2 italic [&_a]:underline">{children}</blockquote>
<div className="mt-2 flex items-center gap-3">
<div className="relative h-10 w-10 overflow-hidden rounded-full">
<Image
alt={name}
src={`https://github.com/${githubUsername}.png`}
width={40}
height={40}
className="h-full w-full object-cover"
/>
</div>
<div>
<div className="font-semibold">{name}</div>
<a
className="block text-muted-foreground text-sm underline"
href={link}
rel="noopener"
target="_blank"
>
{role}
</a>
</div>
</div>
</aside>
);