Screen Shot 2022-03-03 at 10.57.27 PM

npm i react-share-social
// now use it in single post page
// pages/post/[slug].js

import { ShareSocial } from "react-share-social";

 <div style={{ marginTop: "-20px", marginBottom: "15px" }}>
  <ShareSocial
    url={process.browser && window.location.href}
    socialTypes={["facebook", "twitter", "reddit", "linkedin"]}
    style={{
      height: "100px",
      overflow: "hidden",
      background: "none",
    }}
  />
</div>