/**
* 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, {type ReactNode} from 'react';
import clsx from 'clsx';
import Link, {type Props as LinkProps} from '@docusaurus/Link';
import AuthorSocials from '@theme/Blog/Components/Author/Socials';
import type {Props} from '@theme/Blog/Components/Author';
import Heading from '@theme/Heading';
import styles from './styles.module.css';
function MaybeLink(props: LinkProps): ReactNode {
if (props.href) {
return ;
}
return <>{props.children}>;
}
function AuthorTitle({title}: {title: string}) {
return (
{title}
);
}
function AuthorName({name, as}: {name: string; as: Props['as']}) {
if (!as) {
return (
{name}
);
} else {
return (