/* * Copyright 2024 Palantir Technologies, Inc. All rights reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import * as React from "react"; import type { SVGIconProps } from "../../svgIconProps"; import { IconSize } from "../../iconTypes"; import { SVGIconContainer } from "../../svgIconContainer"; /** Path data for the 16px grid; matches {@link generate-icon-paths.mjs} / `` from core. */ const PATHS_16 = ["M.5 2a.5.5 0 0 1 .5.5V4h7V3H2.5a.5.5 0 0 1 0-1h13a.5.5 0 0 1 0 1H10v1h1c2.26 0 4 1.79 4 4 0 1.87-1.247 3.44-3 3.878V13h.382l1.894-.947a.5.5 0 1 1 .448.894L12.618 14H4.5a.5.5 0 0 1 0-1H7v-2.306C5.749 9.736 5 8.368 5 7L1 6v1.5a.5.5 0 0 1-1 0v-5A.5.5 0 0 1 .5 2M8 11.316V13h3v-1a6.7 6.7 0 0 1-3-.684M11 5v3h3a3 3 0 0 0-3-3"] as readonly string[]; /** Path data for the 20px grid; matches {@link generate-icon-paths.mjs} / `` from core. */ const PATHS_20 = ["M10 3v2H1V3.5a.5.5 0 0 0-1 0v5a.5.5 0 0 0 1 0V7l5 2c0 1.54.824 3.575 3 4.835V16H5.5a.5.5 0 1 0 0 1h11a.5.5 0 0 0 .224-.053l2-1a.5.5 0 1 0-.448-.894L16.382 16H15v-1.1A5.002 5.002 0 0 0 14 5h-1V3h6.5a.5.5 0 0 0 0-1h-16a.5.5 0 0 0 0 1zm4 13v-1c-1.608 0-2.928-.258-4-.683V16zm0-6V6a4 4 0 0 1 4 4z"] as readonly string[]; export const Helicopter: React.FC = React.forwardRef((props, ref) => { const isLarge = (props.size ?? IconSize.STANDARD) >= IconSize.LARGE; const paths = isLarge ? PATHS_20 : PATHS_16; return ( {paths.map((d, i) => ( ))} ); }); Helicopter.displayName = `Blueprint6.Icon.Helicopter`; export default Helicopter;