Skip to content
Snippets Groups Projects
Socials.tsx 548 B
Newer Older
import React from "react";
import Logo from "./core/Logo";
Tojo's avatar
Tojo committed

Julien MARGAIL's avatar
Julien MARGAIL committed
interface ISocials {
  layout?: string;
  name: string;
  logo: any;
  url: string;
Tojo's avatar
Tojo committed
}

Julien MARGAIL's avatar
Julien MARGAIL committed
const Socials = (props: ISocials) => {
  const { layout, name, logo, url } = props;
Tojo's avatar
Tojo committed

  return (
    <div
      className={`tooltip ${
        layout == "row" ? "tooltip-bottom" : "tooltip-right"
      } `}
      data-tip={name}
    >
      <Logo
        image={logo}
        to={url}
        className={"w-10 h-10"}
        classImg={" h-10 w-10"}
      />
    </div>
  );
};
Tojo's avatar
Tojo committed

Julien MARGAIL's avatar
Julien MARGAIL committed
export default Socials;