/*
 * Copyright 2026 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 { SvgIconContainerNext } from "../../svgIconContainerNext";

const PATHS = ["M9.25 1.25c.199 0 .39.08.53.22l3.5 3.5c.14.14.22.331.22.53v3.524l-.263-.262A1.75 1.75 0 0 0 12 8.249V6.5H9a.75.75 0 0 1-.75-.75v-3H4v10.5h2.276l1.5 1.5H3.75A1.25 1.25 0 0 1 2.5 13.5v-11a1.25 1.25 0 0 1 1.25-1.25zm-.28 8.219a.75.75 0 0 1 1.06 1.06L8.56 12l1.47 1.47a.75.75 0 0 1-1.06 1.06l-2-2a.75.75 0 0 1 0-1.06zm2.5 0a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1 0 1.06l-2 2a.75.75 0 1 1-1.06-1.06l1.47-1.47-1.47-1.47a.75.75 0 0 1 0-1.06M9.75 5h1.44L9.75 3.56z"] as readonly string[];

export const FileCodeIcon: React.FC<SVGIconProps> = React.forwardRef<any, SVGIconProps>((props, ref) => {
    return (
        <SvgIconContainerNext iconName="file-code" ref={ref} {...props}>
            {PATHS.map((d, i) => (
                <path key={i} d={d} />
            ))}
        </SvgIconContainerNext>
    );
});
FileCodeIcon.displayName = "Blueprint6.Icon.Next.FileCodeIcon";
export default FileCodeIcon;
