/*
 * 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";

export const Ninja: React.FC<SVGIconProps> = React.forwardRef<any, SVGIconProps>((props, ref) => {
    const isLarge = (props.size ?? IconSize.STANDARD) >= IconSize.LARGE;
    const pixelGridSize = isLarge ? IconSize.LARGE : IconSize.STANDARD;
    const translation = `${-1 * pixelGridSize / 0.05 / 2}`;
    const style = { transformOrigin: "center" };
    return (
        <SVGIconContainer iconName="ninja" ref={ref} {...props}>
            <path
                d={isLarge ? "M400 280S340.4 231.4 277.6 236.2C270.4 293.8 241 400 120 400C120 400 168.2 340.2 163.2 277.6C105.4 270.2 0 240.6 0 120C0 120 59.6 168.6 122.2 163.8C129.4 106.2 158.8 0 280 0C280 0 231.6 59.8000000000001 236.8 122.6C294.6 129.8 400 159.6 400 280M200 160C178 160 160 178 160 200S178 240 200 240S240 222 240 200S222 160 200 160" : "M320 220S269.6 177.8 220.8 180.2C220.6 222.2 207.8 315.4 100 320C100 320 142.2 269.2 139.2 220.2C97.2 219.8 4.6 207 0 100C0 100 51.2 142.4 100.4 139C100.8 96.8 113.8 4.6 220 0C220 0 178.2 50.8 181.2 99.8C223.4 100.2 315.4 113.4 320 220M160 130C143.4 130 130 143.4 130 160S143.4 190 160 190S190 176.6 190 160S176.6 130 160 130"}
                fillRule="evenodd"
                transform={`scale(0.05, -0.05) translate(${translation}, ${translation})`}
                style={style}
            />
        </SVGIconContainer>
   );
});
Ninja.displayName = `Blueprint6.Icon.Ninja`;
export default Ninja;
