'use strict';

var React = require('react');

const useLegacyComponentWarning = (msg) => {
  React.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;

module.exports = useLegacyComponentWarning$1;
