"use client";
import style from "./button-session.module.css";

interface ButtonSessionProps {
    name: string;
    type: string;
    text: string;
    style?: React.CSSProperties;
    onClick?: (e: React.MouseEvent<HTMLInputElement>) => void;
}

export default function ButtonSession(props: ButtonSessionProps): React.ReactElement {
    return (
        <>
            <input
                className={style.buttonSession}
                type="button"
                id={props.name}
                value={props.text}
                style={props.style}
                onClick={props.onClick}
            />
        </>
    );
}
