/**
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

import React from 'react';
import clsx from 'clsx';

import {Props} from '@theme/IconEdit';

import styles from './styles.module.css';

const IconEdit = ({className, ...restProps}: Props): JSX.Element => {
  return (
    <svg
      fill="currentColor"
      height="1.2em"
      width="1.2em"
      preserveAspectRatio="xMidYMid meet"
      role="img"
      viewBox="0 0 40 40"
      className={clsx(styles.iconEdit, className)}
      aria-label="Edit page"
      {...restProps}>
      <g>
        <path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z" />
      </g>
    </svg>
  );
};

export default IconEdit;
