import React, { CSSProperties } from "react"; import { Button } from "react-bootstrap"; import { ButtonVariant } from "react-bootstrap/esm/types"; import { JustChildren, SetState } from "types/react"; export default function SelectButton({ id, value, setValue, children, onVariant = "primary", offVariant = "outline-secondary", disabled = false, onStyle = {}, offStyle = {}, style = {}, className = "", }: { id: T; value: T; setValue: SetState; onVariant?: ButtonVariant; offVariant?: ButtonVariant; disabled?: boolean; style?: CSSProperties; onStyle?: CSSProperties; offStyle?: CSSProperties; className?: string; } & JustChildren) { const active = id === value; return ( ); }