mirror of
https://github.com/FranP-code/Hangman-game-with-React.git
synced 2025-10-13 00:42:32 +00:00
19 lines
422 B
JavaScript
19 lines
422 B
JavaScript
import React from 'react'
|
|
import {withRouter} from 'react-router'
|
|
|
|
const AdminHeader = (props) => {
|
|
return (
|
|
<header>
|
|
<h1>Admin Place</h1>
|
|
<button
|
|
className="redirect-button"
|
|
onClick={() => props.history.push('/')}
|
|
>
|
|
Back to the Game
|
|
</button>
|
|
</header>
|
|
)
|
|
}
|
|
|
|
export default withRouter(AdminHeader)
|