Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "wordpress-plugins/real-cookie-banner/src/public/ts/components/config/noticeNoManager"

Index

Variables

Variables

Const NoticeNoManager

NoticeNoManager: FC = observer(() => {const {optionStore: { setCookiesViaManager, hasManager }} = useStores();const { managerLabel, expectedManagerPresetId } = getManagerDependingVariables(setCookiesViaManager);const { pathname } = useLocation();return (managerLabel &&!hasManager &&/^\/cookies\/\d+$/.test(pathname) && (<div className="notice notice-warning inline below-h2 notice-alt" style={{ margin: "10px 0 0 0" }}><p>{_i(__("You have not yet defined a %s service. To use {{strong}}%s{{/strong}} with Real Cookie Banner, you must create the appropriate service.",managerLabel,managerLabel),{ strong: <strong /> })}{" "}&bull; <a href={`#${pathname}/new?force=${expectedManagerPresetId}`}>{__("Create now")}</a></p></div>));})

Generated using TypeDoc