import { colorVariants } from '../colorVariants'

import type { NucleoIconProps } from '../../icon'

function Door2(props: NucleoIconProps) {
  const fill = props.color ? colorVariants[props.color] : 'currentColor'
  const strokewidth = props.strokewidth || 2
  const width = props.size || '1em'
  const height = props.size || '1em'

  return (
    <svg
      height={height}
      width={width}
      viewBox="0 0 24 24"
      xmlns="http://www.w3.org/2000/svg"
    >
      <g
        fill={fill}
        strokeLinecap="round"
        strokeLinejoin="round"
        transform="translate(0.25 0.25)"
      >
        <rect
          height="22"
          width="16"
          fill="none"
          stroke={fill}
          strokeWidth={strokewidth}
          x="4"
          y="1"
        />
        <rect
          height="6"
          width="8"
          fill="none"
          stroke={fill}
          strokeWidth={strokewidth}
          x="8"
          y="5"
        />
        <line
          fill="none"
          stroke={fill}
          strokeWidth={strokewidth}
          x1="8"
          x2="8"
          y1="15"
          y2="17"
        />
      </g>
    </svg>
  )
}

export default Door2
