2023-01-29 16:44:02 +01:00
|
|
|
import { fail, ohno, shrug, shrug2, yay } from './poses.mjs'
|
2022-01-28 16:57:07 +01:00
|
|
|
|
2023-01-29 16:44:02 +01:00
|
|
|
const poses = {
|
|
|
|
fail,
|
|
|
|
ohno,
|
|
|
|
shrug,
|
|
|
|
shrug2,
|
|
|
|
yay,
|
|
|
|
}
|
2022-01-28 16:57:07 +01:00
|
|
|
|
2023-01-29 16:44:02 +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,
|
2023-01-29 16:44:02 +01:00
|
|
|
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>
|
|
|
|
)
|