mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-27 13:51:36 +01:00
83ae40e192
Port fb5bf5cbf8
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
24 lines
548 B
TypeScript
24 lines
548 B
TypeScript
import { FormattedMessage } from 'react-intl';
|
|
|
|
interface Props {
|
|
onClick: (event: React.MouseEvent) => void;
|
|
disabled?: boolean;
|
|
visible?: boolean;
|
|
}
|
|
export const LoadMore: React.FC<Props> = ({
|
|
onClick,
|
|
disabled,
|
|
visible = true,
|
|
}) => {
|
|
return (
|
|
<button
|
|
type='button'
|
|
className='load-more'
|
|
disabled={disabled || !visible}
|
|
style={{ visibility: visible ? 'visible' : 'hidden' }}
|
|
onClick={onClick}
|
|
>
|
|
<FormattedMessage id='status.load_more' defaultMessage='Load more' />
|
|
</button>
|
|
);
|
|
};
|