interface RequiredIconType {
  className?: string;
  onClick?: () => void;
}

const RequiredIcon   = ({ className, onClick }: RequiredIconType) => {
  return (
    <svg
      width="40"
      height="40"
      viewBox="0 0 40 40"
      fill="none"
      xmlns="http://www.w3.org/2000/svg"
      className={className}
      onClick={onClick}
    >
      <path
        d="M30.4728 19.7091H9.52731C9.206 19.7091 8.9455 19.4486 8.9455 19.1273V15.6364C8.9455 15.3151 9.206 15.0546 9.52731 15.0546H30.4728C30.7941 15.0546 31.0546 15.3151 31.0546 15.6364V19.1273C31.0546 19.4486 30.7941 19.7091 30.4728 19.7091ZM10.1091 18.5455H29.8909V16.2182H10.1091V18.5455Z"
        fill="#333333"
      />
      <path
        d="M13.6001 31.9273H11.2728C10.9515 31.9273 10.691 31.6668 10.691 31.3455V19.1273C10.691 18.806 10.9515 18.5455 11.2728 18.5455H13.6001C13.9214 18.5455 14.1819 18.806 14.1819 19.1273V31.3455C14.1819 31.6668 13.9214 31.9273 13.6001 31.9273ZM11.8546 30.7637H13.0183V19.7091H11.8546V30.7637Z"
        fill="#333333"
      />
      <path
        d="M28.7273 31.9273H26.4001C26.0787 31.9273 25.8182 31.6668 25.8182 31.3455V19.1273C25.8182 18.806 26.0787 18.5455 26.4001 18.5455H28.7273C29.0486 18.5455 29.3091 18.806 29.3091 19.1273V31.3455C29.3091 31.6668 29.0486 31.9273 28.7273 31.9273ZM26.9819 30.7637H28.1455V19.7091H26.9819V30.7637Z"
        fill="#333333"
      />
      <path
        d="M26.4001 22.6182H13.6001C13.2788 22.6182 13.0182 22.3577 13.0182 22.0364C13.0182 21.7151 13.2788 21.4546 13.6001 21.4546H26.4001C26.7214 21.4546 26.9819 21.7151 26.9819 22.0364C26.9819 22.3577 26.7214 22.6182 26.4001 22.6182Z"
        fill="#333333"
      />
      <path
        d="M8.94547 31.9273C8.62416 31.9273 8.36365 31.6668 8.36365 31.3454V24.3636H1.96365C1.64235 24.3636 1.38184 24.1031 1.38184 23.7818V13.8909C1.38184 13.5696 1.64235 13.3091 1.96365 13.3091C2.28496 13.3091 2.54547 13.5696 2.54547 13.8909V23.2H8.94547C9.26678 23.2 9.52729 23.4605 9.52729 23.7818V31.3454C9.52729 31.6668 9.26678 31.9273 8.94547 31.9273Z"
        fill="#333333"
      />
      <path
        d="M1.96365 31.9273C1.64235 31.9273 1.38184 31.6668 1.38184 31.3455V23.7818C1.38184 23.4605 1.64235 23.2 1.96365 23.2C2.28496 23.2 2.54547 23.4605 2.54547 23.7818V31.3455C2.54547 31.6668 2.28496 31.9273 1.96365 31.9273Z"
        fill="#333333"
      />
      <path
        d="M8.94547 24.3637H1.96365C1.64235 24.3637 1.38184 24.1031 1.38184 23.7818V21.4546C1.38184 21.1333 1.64235 20.8727 1.96365 20.8727H6.76365C8.28751 20.8727 9.52729 22.1125 9.52729 23.6364V23.7818C9.52729 24.1031 9.26678 24.3637 8.94547 24.3637ZM2.54547 23.2H8.30314C8.11274 22.5291 7.49464 22.0364 6.76365 22.0364H2.54547V23.2Z"
        fill="#333333"
      />
      <path
        d="M31.1273 31.9273C30.806 31.9273 30.5455 31.6668 30.5455 31.3454V23.7818C30.5455 23.4605 30.806 23.2 31.1273 23.2H37.4546V13.8909C37.4546 13.5696 37.7151 13.3091 38.0364 13.3091C38.3577 13.3091 38.6182 13.5696 38.6182 13.8909V23.7818C38.6182 24.1031 38.3577 24.3636 38.0364 24.3636H31.7091V31.3454C31.7091 31.6668 31.4486 31.9273 31.1273 31.9273Z"
        fill="#333333"
      />
      <path
        d="M38.0364 31.9273C37.7151 31.9273 37.4546 31.6668 37.4546 31.3455V23.7818C37.4546 23.4605 37.7151 23.2 38.0364 23.2C38.3577 23.2 38.6182 23.4605 38.6182 23.7818V31.3455C38.6182 31.6668 38.3577 31.9273 38.0364 31.9273Z"
        fill="#333333"
      />
      <path
        d="M38.0364 24.3637H31.1273C30.806 24.3637 30.5455 24.1031 30.5455 23.7818V23.6364C30.5455 22.1125 31.7853 20.8727 33.3091 20.8727H38.0364C38.3577 20.8727 38.6182 21.1333 38.6182 21.4546V23.7818C38.6182 24.1031 38.3577 24.3637 38.0364 24.3637ZM31.7695 23.2H37.4546V22.0364H33.3091C32.5781 22.0364 31.9599 22.5291 31.7695 23.2Z"
        fill="#333333"
      />
      <path
        d="M8.94547 27.8546H1.96365C1.64235 27.8546 1.38184 27.594 1.38184 27.2727C1.38184 26.9514 1.64235 26.6909 1.96365 26.6909H8.94547C9.26678 26.6909 9.52729 26.9514 9.52729 27.2727C9.52729 27.594 9.26678 27.8546 8.94547 27.8546Z"
        fill="#333333"
      />
      <path
        d="M38.0364 27.8546H31.1273C30.806 27.8546 30.5455 27.594 30.5455 27.2727C30.5455 26.9514 30.806 26.6909 31.1273 26.6909H38.0364C38.3577 26.6909 38.6182 26.9514 38.6182 27.2727C38.6182 27.594 38.3577 27.8546 38.0364 27.8546Z"
        fill="#333333"
      />
      <path
        d="M24.0727 16.2182H15.9273C15.606 16.2182 15.3455 15.9577 15.3455 15.6364V12.7273C15.3455 12.406 15.606 12.1454 15.9273 12.1454H24.0727C24.394 12.1454 24.6545 12.406 24.6545 12.7273V15.6364C24.6545 15.9577 24.394 16.2182 24.0727 16.2182ZM16.5091 15.0545H23.4909V13.3091H16.5091V15.0545Z"
        fill="#333333"
      />
      <path
        d="M21.7454 13.3091H18.2545C18.0596 13.3091 17.8777 13.2115 17.7698 13.0491C17.662 12.8867 17.6426 12.6811 17.7183 12.5015L18.6417 10.3087C18.7576 9.98409 19.0051 9.72351 19.3243 9.59129C19.6514 9.45588 20.0206 9.46889 20.3374 9.62729C20.3633 9.64024 20.3947 9.6318 20.4107 9.60788L21.2614 8.3318C21.358 8.18678 21.5146 8.09268 21.6881 8.07559C21.8615 8.0582 22.0336 8.1198 22.1569 8.24315L23.0412 9.12751C23.3702 9.45653 23.4833 9.93529 23.3361 10.3769C23.3319 10.3892 23.3275 10.4014 23.3225 10.4135L22.2838 12.9479C22.1942 13.1664 21.9815 13.3091 21.7454 13.3091ZM19.1308 12.1455H21.3551L22.2345 10C22.2374 9.98199 22.2317 9.96359 22.2185 9.95035L21.8358 9.5678L21.3788 10.2533C21.038 10.7646 20.3666 10.9429 19.817 10.6681C19.8112 10.6653 19.7937 10.6564 19.7695 10.6664C19.7454 10.6765 19.7392 10.6951 19.7371 10.7013C19.7324 10.7154 19.7271 10.7293 19.7214 10.743L19.1308 12.1455Z"
        fill="#333333"
      />
    </svg>
  );
};

export default RequiredIcon ;
