import { Icon } from "@deuna/components/icons";
import { Button } from "@deuna/components/button";

interface LogoutProps {
  onExit?: () => void;
}

const Logout = ({ onExit }: LogoutProps) => {
  return (
    <Button
      kind="ghost"
      style={{ width: "100%", marginTop: "10px" }}
      onClick={onExit}
      startEnhancer={<Icon iconName="logout" size="small" />}
    >
      Salir
    </Button>
  );
};

export default Logout;
