import { useEffect } from 'react';

const useLegacyComponentWarning = (msg) => {
  useEffect(() => {
    if (process.env.NODE_ENV === "development") {
      console.warn(
        msg != null ? msg : "Warning: LegacyComponent is deprecated and will be removed in future versions."
      );
    }
  }, [msg]);
};
var useLegacyComponentWarning$1 = useLegacyComponentWarning;

export { useLegacyComponentWarning$1 as default };
