blob: d9f711783526633423fa6066b8e19b2144c6d1e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import React from 'react'
export const FullscreenTextPlate = ({ element, transitionDuration }) => {
console.log(element)
const { color } = element
const style = {
backgroundColor: color.backgroundColor.replace('1.0', '0.8'),
color: color.textColor,
transitionDuration,
}
return (
<div
className='fullscreen-element text-plate'
style={style}
>
<span>
{element.annotation.text}
</span>
</div>
)
}
|