import {
    NCoreUIKitTheme
} from "../../../core/hooks";
import {
    type INCoreUIKitIconProps
} from "../../../types";
import {
    Path,
    Svg
} from "react-native-svg";

const SvgBadgeAlertIcon = ({
    color = "default",
    customColor,
    size = 20,
    ...props
}: INCoreUIKitIconProps) => {
    const {
        colors
    } = NCoreUIKitTheme.useContext();

    const pathScale = 20 / size;

    const finalColor = customColor ? customColor : colors.content.icon[color];

    return <Svg
        height={size}
        width={size}
        fill="none"
        {...props}
    >
        <Path
            d="M10 6.667V10m0 3.333h.008m-6.8-6.15a3.333 3.333 0 0 1 3.984-3.975 3.333 3.333 0 0 1 5.616 0 3.333 3.333 0 0 1 3.984 3.984 3.333 3.333 0 0 1 0 5.616 3.333 3.333 0 0 1-3.975 3.984 3.333 3.333 0 0 1-5.625 0 3.333 3.333 0 0 1-3.984-3.975 3.335 3.335 0 0 1 0-5.634Z"
            transform={`scale(${1 / pathScale})`}
            strokeLinejoin="round"
            strokeLinecap="round"
            strokeWidth={1.167}
            stroke={finalColor}
        />
    </Svg>;
};
export default SvgBadgeAlertIcon;
