/*
 * 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 SymbolTriangleUp: 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="symbol-triangle-up" ref={ref} {...props}>
            <path
                d={isLarge ? "M317.8 108.8L218 308.8H217.8C214.4 315.4 207.8 320 200 320S185.6 315.4 182.2 308.8H182L82 108.8H82.2C81 106.2 80 103.2 80 100C80 89 89 80 100 80H300C311 80 320 89 320 100C320 103.2 319 106.2 317.8 108.8" : "M257.8 88.8L178 248.8H177.8C174.4 255.2 167.8 259.8 160 259.8S145.6 255.2 142.2 248.8H142L62 88.8H62.2C61 86 60 83 60 79.8C60 68.8 69 59.8 80 59.8H240C251 59.8 260 68.8 260 79.8C260 83 259 86 257.8 88.8"}
                fillRule="evenodd"
                transform={`scale(0.05, -0.05) translate(${translation}, ${translation})`}
                style={style}
            />
        </SVGIconContainer>
   );
});
SymbolTriangleUp.displayName = `Blueprint6.Icon.SymbolTriangleUp`;
export default SymbolTriangleUp;
