2019-10-14 03:19:24 +02:00
|
|
|
// @flow
|
2019-10-16 06:21:19 +02:00
|
|
|
import * as PAGES from 'constants/pages';
|
|
|
|
import * as ICONS from 'constants/icons';
|
2019-10-14 03:19:24 +02:00
|
|
|
import React from 'react';
|
|
|
|
import Button from 'component/button';
|
|
|
|
import Icon from 'component/common/icon';
|
|
|
|
import I18nMessage from 'component/i18nMessage';
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
type?: string,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default function HiddenNsfw(props: Props) {
|
|
|
|
const { type = 'page' } = props;
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className="section--padded section__subtitle">
|
|
|
|
<Icon className="icon--hidden" icon={ICONS.EYE_OFF} />
|
2019-10-16 06:21:19 +02:00
|
|
|
<I18nMessage
|
|
|
|
tokens={{
|
|
|
|
type,
|
2022-01-07 20:02:33 +01:00
|
|
|
settings: <Button button="link" label={__('settings')} navigate={`/$/${PAGES.SETTINGS}`} />,
|
2019-10-16 06:21:19 +02:00
|
|
|
}}
|
|
|
|
>
|
|
|
|
Content may be hidden on this %type% because of your %settings%.
|
2019-10-14 03:19:24 +02:00
|
|
|
</I18nMessage>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|