mirror of
https://github.com/mastodon/mastodon.git
synced 2025-05-11 20:21:10 +00:00
24 lines
537 B
TypeScript
24 lines
537 B
TypeScript
import { MouseEventHandler } from 'react';
|
|
import { FormattedMessage } from 'react-intl';
|
|
|
|
interface Props {
|
|
onClick: MouseEventHandler<HTMLButtonElement>;
|
|
}
|
|
|
|
const GrantPermissionButton: React.FC<Props> = ({ onClick }) => {
|
|
return (
|
|
<button
|
|
className='text-btn column-header__permission-btn'
|
|
tabIndex={0}
|
|
onClick={onClick}
|
|
>
|
|
<FormattedMessage
|
|
id='notifications.grant_permission'
|
|
defaultMessage='Grant permission.'
|
|
/>
|
|
</button>
|
|
);
|
|
};
|
|
|
|
export default GrantPermissionButton;
|