/*
 * 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 = ["M8 1.75a.75.75 0 0 1 0 1.5H3.25v9.5h9.5V8a.75.75 0 0 1 1.5 0v5c0 .69-.56 1.25-1.25 1.25H3c-.69 0-1.25-.56-1.25-1.25V3c0-.69.56-1.25 1.25-1.25zm4.745-.43c.53.014 1.006.245 1.348.587s.574.818.587 1.348c.013.544-.206 1.08-.65 1.525l-4.5 4.5a.75.75 0 0 1-.368.202l-2.25.499a.75.75 0 0 1-.894-.896l.5-2.248.03-.102q.057-.151.172-.266l4.5-4.5c.444-.444.981-.662 1.525-.648m-.037 1.5c-.097-.003-.247.03-.428.21L7.935 7.374l-.198.887.886-.196 4.347-4.346c.18-.18.212-.33.21-.428a.48.48 0 0 0-.148-.324.48.48 0 0 0-.324-.147"] as readonly string[];

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