You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
470 B
21 lines
470 B
import React from "react";
|
|
import { useTheme } from "../Style/ThemeContext";
|
|
|
|
interface TurnBarProps{
|
|
text: string
|
|
}
|
|
|
|
const TurnBar: React.FC<TurnBarProps> = ({text})=> {
|
|
const theme = useTheme();
|
|
return (
|
|
<div className='upperInfo'
|
|
style={{
|
|
borderColor: theme.colors.secondary
|
|
}}>
|
|
{/* texte changeable et a traduire */}
|
|
<p>{text}</p>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default TurnBar; |