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

16 lines
391 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 = ({ viewBox = '0 0 500 500', className = 'w-full', pose = 'yay' }) => (
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>
)