1
0
Fork 0
freesewing/packages/freesewing.shared/components/workbench/menu/xray/point.js

21 lines
530 B
JavaScript
Raw Normal View History

import { Ul, Li, Details, Summary, NoSumDiv, Deg } from 'shared/components/workbench/menu'
import { round } from 'shared/utils.js'
import Attributes from './attributes.js'
2022-01-29 19:27:14 +01:00
const XrayPoint = ({ point }) => (
<Ul>
{['x', 'y'].map(coord => (
<Li key={coord}>
<NoSumDiv>
<Deg />
<span className="font-bold mr-2">{coord} =</span>
<span>{round(point[coord])}</span>
</NoSumDiv>
</Li>
))}
<Attributes attr={point.attributes} />
</Ul>
)
2022-01-29 19:27:14 +01:00
export default XrayPoint