text: /**
   * Copyright (c) Facebook, Inc. and its affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   *
   * @format
   * @flow strict
   */
  
  'use strict';
  
  import type {SchemaType, NativeModuleSchema} from '../../../CodegenSchema.js';
  
  function wrapModuleSchema(
    {aliases, properties}: NativeModuleSchema,
    moduleName: string,
  ): SchemaType {
    return {
      modules: {
        [`Native${moduleName}`]: {
          nativeModules: {
            [moduleName]: {
              aliases,
              properties,
            },
          },
        },
      },
    };
  }
  
  module.exports = {
    wrapModuleSchema,
  };
  