mirror of
https://github.com/flarum/core.git
synced 2025-07-29 04:30:56 +02:00
22 lines
550 B
JavaScript
22 lines
550 B
JavaScript
import Notification from 'flarum/components/Notification';
|
|
import username from 'flarum/helpers/username';
|
|
import humanTime from 'flarum/helpers/humanTime';
|
|
|
|
export default class UserUnsuspendedNotification extends Notification {
|
|
icon() {
|
|
return 'ban';
|
|
}
|
|
|
|
href() {
|
|
return app.route.user(this.props.notification.subject());
|
|
}
|
|
|
|
content() {
|
|
const notification = this.props.notification;
|
|
|
|
return app.translator.trans('flarum-suspend.forum.notifications.user_unsuspended_text', {
|
|
user: notification.sender(),
|
|
});
|
|
}
|
|
}
|