function LatestVersionSuggestionLabel()

in src/theme/DocVersionBanner/index.tsx [62:111]


function LatestVersionSuggestionLabel({
    versionLabel,
    to,
    realLatestVersion,
    onClick,
}: {
    to: string;
    onClick: () => void;
    realLatestVersion: {
        label: string;
        to: string;
    };
    versionLabel: string;
}) {
    return (
        <Translate
            id="theme.docs.versions.latestVersionSuggestionLabel"
            description="The label used to tell the user to check the latest version"
            values={{
                latestVersionLink: (
                    <b>
                        <Link to={realLatestVersion.to} onClick={onClick}>
                            <Translate
                                id="theme.docs.versions.latestVersionLinkLabel"
                                description="The label used for the latest version suggestion link label"
                            >
                                Version 3.0
                            </Translate>
                        </Link>
                    </b>
                ),
                recommondVersionLink: (
                    <b>
                        <Link to={to} onClick={onClick}>
                            <Translate
                                id="theme.docs.versions.recommondVersionLinkLabel"
                                description="The label used for the recommended version suggestion link label"
                            >
                                Version 2.1
                            </Translate>
                        </Link>
                    </b>
                ),
            }}
        >
            {/* 'For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).' */}
            {'For usage, please refer to the official documentation of  {recommondVersionLink} or {latestVersionLink}.'}
        </Translate>
    );
}