main
Last change
on this file since b4369c8 was 87614a5, checked in by anastasovv <simon@…>, 2 years ago |
Blackjack prototype
|
-
Property mode
set to
100644
|
File size:
351 bytes
|
Rev | Line | |
---|
[87614a5] | 1 | import React from 'react'
|
---|
| 2 |
|
---|
| 3 | import { useSelector } from 'react-redux'
|
---|
| 4 |
|
---|
| 5 | const FullwidthText = ({title, subtitle}) => {
|
---|
| 6 | const playerState = useSelector(state => state.player);
|
---|
| 7 |
|
---|
| 8 | return (
|
---|
| 9 | <div className="fullwidthText">
|
---|
| 10 | <h1>{title}, {playerState.player.displayName}</h1>
|
---|
| 11 | <h3>{subtitle}</h3>
|
---|
| 12 | </div>
|
---|
| 13 | )
|
---|
| 14 | }
|
---|
| 15 |
|
---|
| 16 | export default FullwidthText |
---|
Note:
See
TracBrowser
for help on using the repository browser.