movie-web/src2/components/Arrow.js

16 lines
597 B
JavaScript
Raw Normal View History

2021-07-14 00:31:37 +02:00
import React from 'react'
import './Arrow.css'
// left?: boolean
export function Arrow(props) {
return (
2021-07-14 00:57:31 +02:00
<span className="arrow" dangerouslySetInnerHTML={{ __html: `
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather ${props.left?'left':''}"}>
2021-07-14 00:31:37 +02:00
<line x1="5" y1="12" x2="19" y2="12"></line>
<polyline points="12 5 19 12 12 19"></polyline>
</svg>
2021-07-14 00:57:31 +02:00
`}}>
</span>
2021-07-14 00:31:37 +02:00
)
}