/**
 * Copyright (c) TonTech.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 */

import type { FC } from 'react';

import { DEFAULT_ICON_SIZE } from './types';
import type { IconProps } from './types';

export const SearchIcon: FC<IconProps> = ({ size = DEFAULT_ICON_SIZE, ...props }) => (
    <svg
        width={size}
        height={size}
        viewBox="0 0 24 24"
        fill="none"
        xmlns="http://www.w3.org/2000/svg"
        aria-hidden="true"
        {...props}
    >
        <path
            d="M3.21973 10.4735C3.21973 9.47253 3.40778 8.53529 3.78389 7.66175C4.16 6.78214 4.6817 6.00868 5.34899 5.34139C6.01628 4.6741 6.7867 4.1524 7.66024 3.77629C8.53986 3.40018 9.48013 3.21213 10.4811 3.21213C11.482 3.21213 12.4192 3.40018 13.2928 3.77629C14.1724 4.1524 14.9459 4.6741 15.6131 5.34139C16.2804 6.00868 16.8021 6.78214 17.1782 7.66175C17.5544 8.53529 17.7424 9.47253 17.7424 10.4735C17.7424 11.3045 17.6089 12.0932 17.342 12.8393C17.0812 13.5855 16.7172 14.2619 16.2501 14.8685L20.6997 19.3454C20.7968 19.4425 20.8696 19.5547 20.9181 19.6821C20.9727 19.8095 21 19.946 21 20.0916C21 20.2917 20.9545 20.4737 20.8635 20.6375C20.7786 20.8013 20.6573 20.9287 20.4995 21.0197C20.3418 21.1168 20.1598 21.1653 19.9536 21.1653C19.808 21.1653 19.6685 21.138 19.535 21.0834C19.4076 21.0349 19.2893 20.959 19.1801 20.8559L14.7032 16.3699C14.1087 16.7945 13.4535 17.1282 12.7377 17.3708C12.0219 17.6135 11.2697 17.7348 10.4811 17.7348C9.48013 17.7348 8.53986 17.5468 7.66024 17.1706C6.7867 16.7945 6.01628 16.2728 5.34899 15.6055C4.6817 14.9383 4.16 14.1678 3.78389 13.2943C3.40778 12.4147 3.21973 11.4744 3.21973 10.4735ZM4.77573 10.4735C4.77573 11.2621 4.92132 12.0022 5.2125 12.6937C5.50975 13.3792 5.91922 13.9828 6.44092 14.5045C6.96869 15.0262 7.57532 15.4357 8.26081 15.7329C8.95236 16.0302 9.69245 16.1788 10.4811 16.1788C11.2697 16.1788 12.0067 16.0302 12.6922 15.7329C13.3838 15.4357 13.9904 15.0262 14.5121 14.5045C15.0338 13.9828 15.4433 13.3792 15.7405 12.6937C16.0378 12.0022 16.1864 11.2621 16.1864 10.4735C16.1864 9.68485 16.0378 8.9478 15.7405 8.26231C15.4433 7.57075 15.0338 6.96412 14.5121 6.44242C13.9904 5.91466 13.3838 5.50518 12.6922 5.214C12.0067 4.91675 11.2697 4.76813 10.4811 4.76813C9.69245 4.76813 8.95236 4.91675 8.26081 5.214C7.57532 5.50518 6.96869 5.91466 6.44092 6.44242C5.91922 6.96412 5.50975 7.57075 5.2125 8.26231C4.92132 8.9478 4.77573 9.68485 4.77573 10.4735Z"
            fill="currentColor"
        />
    </svg>
);
