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