2024-06-13 23:04:16 +10:00
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
|
|
|
import { FormattedMessage } from 'react-intl';
|
|
|
|
|
2024-09-12 19:41:19 +10:00
|
|
|
import { IconLogo } from 'mastodon/components/logo';
|
2024-06-13 23:04:16 +10:00
|
|
|
import { AuthorLink } from 'mastodon/features/explore/components/author_link';
|
|
|
|
|
|
|
|
export const MoreFromAuthor = ({ accountId }) => (
|
|
|
|
<div className='more-from-author'>
|
2024-09-12 19:41:19 +10:00
|
|
|
<IconLogo />
|
2024-06-13 23:04:16 +10:00
|
|
|
<FormattedMessage id='link_preview.more_from_author' defaultMessage='More from {name}' values={{ name: <AuthorLink accountId={accountId} /> }} />
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
|
|
|
|
MoreFromAuthor.propTypes = {
|
|
|
|
accountId: PropTypes.string.isRequired,
|
|
|
|
};
|