text: // @flow
  
  //  Copyright (c) 2018-present, GM Cruise LLC
  //
  //  This source code is licensed under the Apache License, Version 2.0,
  //  found in the LICENSE file in the root directory of this source tree.
  //  You may not use this file except in compliance with the License.
  
  import * as React from "react";
  
  import type { Cone } from "../types";
  import fromGeometry from "../utils/fromGeometry";
  import { createInstancedGetChildrenForHitmap } from "../utils/getChildrenForHitmapDefaults";
  import withRenderStateOverrides from "../utils/withRenderStateOverrides";
  import Command, { type CommonCommandProps } from "./Command";
  import { createCylinderGeometry } from "./Cylinders";
  
  const { points, sideFaces, endCapFaces } = createCylinderGeometry(30, true);
  
  const cones = withRenderStateOverrides(fromGeometry(points, sideFaces.concat(endCapFaces)));
  
  const getChildrenForHitmap = createInstancedGetChildrenForHitmap(1);
  export default function Cones(props: { ...CommonCommandProps, children: Cone[] }) {
    return <Command getChildrenForHitmap={getChildrenForHitmap} {...props} reglCommand={cones} />;
  }
  