message: feat(components): add compact code for notice breaking changes
diff: -import { deprecatedLogger } from "./utils.js";
  +import { isPlainObject } from "@vuepress/shared";
  +import { colors } from "@vuepress/utils";
  +import { deprecatedLogger, droppedLogger } from "./utils.js";
  +import { logger } from "../utils.js";
  +
  import type { ComponentOptions } from "../options.js";
  /** @deprecated */
  @@ -26,11 +30,17 @@ export const convertOptions = (
  newOption: "rootComponents.backToTop",
  });
  - deprecatedLogger({
  - options,
  - deprecatedOption: "notice",
  - newOption: "rootComponents.notice",
  - });
  + droppedLogger(options, "notice", "", "rootComponents.notice");
  +
  + if (isPlainObject(options.rootComponents?.notice)) {
  + logger.error(
  + `"${colors.magenta(
  + "rootComponents.notice"
  + )}" no longer support object config, please check the docs.`
  + );
  + delete options.rootComponents?.notice;
  + }
  +
  deprecatedLogger({
  options,
  deprecatedOption: "backToTopLocales",
  