/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import clsx from 'clsx'; import Link from '@docusaurus/Link'; import type {Props} from '@theme/BlogPostItem/Header/Author'; import styles from './styles.module.css'; export default function ChangelogAuthor({ author, className, }: Props): JSX.Element { const {name, url, imageURL} = author; return (
{imageURL && ( {name} { // Image returns 404 if the user's handle changes. We display a // fallback instead. e.currentTarget.src = 'data:image/svg+xml,'; }} /> )}
); }