import * as React from "react";
import { SharedIconsProps } from "../share-icon";
import ShareIcon from "../share-icon";
import { ShareStackIconContainer } from "./styled";

export type ShareStackIconType = {
  icons: SharedIconsProps[];
};

function ShareStackIcon({ icons }: ShareStackIconType) {
  return (
    <ShareStackIconContainer>
      {icons.map((icon) => (
        <ShareIcon {...icon} />
      ))}
    </ShareStackIconContainer>
  );
}

export default ShareStackIcon;
