import Button from "./Button"; import styles from "styles/Button.module.sass"; import { ProjectButton, SocialButton } from "utils/types"; import { CSSProperties } from "react"; const ButtonGrid = ({ Buttons, style, }: { Buttons: SocialButton[] | ProjectButton[]; style?: CSSProperties; }) => { if (Buttons[0].project) { return (
{Buttons.map((button, index) => { return (
) } return (
{Buttons.map((button, index) => { return (
); }; export default ButtonGrid;