blob: 013460fd905acf90c4a5afe3f08f7c6b64a007ed (
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>
)
}
|