import { Icon } from "./icon";

interface MobileFABProps {
  onClick: () => void;
  label?: string;
}

export const MobileFAB: React.FC<MobileFABProps> = ({
  onClick,
  label = "Create new",
}) => {
  return (
    <button
      className="mobile-fab"
      onClick={onClick}
      type="button"
      aria-label={label}
    >
      <Icon name="add" size="md" />
    </button>
  );
};
