import { ButtonProps } from "@/components/button/Button";
import DangerButton from "@/components/button/DangerButton";
import PrimaryButton from "@/components/button/PrimaryButton";
import { BsPencilFill, BsTrash3 } from "react-icons/bs";


export default function GameAdminButtons({
	buttonProps,
	showEditGameModal,
	showDeleteGameModal
}:{
	buttonProps: ButtonProps;
	showEditGameModal: () => void;
	showDeleteGameModal: () => void;
}){
	return (
		<div
			className="flex flex-row items-center justify-center gap-2"
		>
			<PrimaryButton
				{...buttonProps}
				onClick={showEditGameModal}
			>
				<BsPencilFill
					size={22}
				/>
			</PrimaryButton>
			<DangerButton
				{...buttonProps}
				onClick={showDeleteGameModal}
			>
				<BsTrash3
					size={22}
				/>
			</DangerButton>
		</div>
	);
}
