1
0
Fork 0
freesewing/packages/freesewing.shared/components/workbench/draft/point/index.js

15 lines
464 B
JavaScript
Raw Normal View History

2022-01-25 11:22:09 +01:00
import Text from '../text'
import Circle from '../circle'
const Point = (props) => {
const output = []
if (props.point.attributes && props.point.attributes.get('data-text'))
output.push(<Text {...props} key={'point-' + props.name} />)
if (props.point.attributes && props.point.attributes.get('data-circle'))
output.push(<Circle point={props.point} key={'circle-' + props.name} />)
return output.length < 1 ? null : output
}
export default Point