import React from "react";
import "./BackButton.css";

interface BackButtonProps {
  text: string;
  onClick?: () => void;
}

const BackButton: React.FC<BackButtonProps> = ({ text, onClick }) => {
  return (
    <div className="back-button" onClick={onClick}>
      <span className="back-button-text">{text}</span>
    </div>
  );
};

export default BackButton;
