import keycloak from './keycloak';

const App: React.FC = () => {
  return (
    <div style={{ padding: 20 }}>
      <h1>Willkommen zur Bücherliste</h1>

      <p>Angemeldet als: {keycloak.tokenParsed?.preferred_username}</p>

      <button onClick={() => keycloak.logout()}>Logout</button>
    </div>
  );
};

export default App;
