Files
vercel__components.build/components/author-note.tsx
v0 fbc75add34 fix: replace missing avatar component with img element
Use plain img for avatar to avoid missing dependency.

Co-authored-by: Matt Collier <2234289+mattc0llier@users.noreply.github.com>
2026-02-06 09:32:40 +00:00

43 lines
967 B
TypeScript

import type { ReactNode } from "react";
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">
<img
alt={name}
src={`https://github.com/${githubUsername}.png`}
className="h-10 w-10 rounded-full object-cover"
/>
<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>
);