1
0
Fork 0
freesewing/sites/shared/components/robot/index.mjs

22 lines
432 B
JavaScript
Raw Normal View History

import { fail, ohno, shrug, shrug2, yay } from './poses.mjs'
2022-01-28 16:57:07 +01:00
const poses = {
fail,
ohno,
shrug,
shrug2,
yay,
}
2022-01-28 16:57:07 +01:00
export const Robot = ({
2022-01-28 16:57:07 +01:00
viewBox = '0 0 500 500',
2023-08-01 15:32:14 +02:00
className = 'w-full',
2022-01-28 16:57:07 +01:00
pose = 'yay',
color = false,
embed = false,
2022-01-28 16:57:07 +01:00
}) => (
2023-08-01 15:32:14 +02:00
<svg className={className} xmlns="http://www.w3.org/2000/svg" viewBox={viewBox || '0 0 500 500'}>
<path stroke="none" fill={'currentColor'} d={poses[pose]} />
2022-01-28 16:57:07 +01:00
</svg>
)