1
0
Fork 0

feat(org): Ported components to mjs and named exports

This commit is contained in:
joostdecock 2023-01-29 16:44:02 +01:00
parent 37f7833983
commit 595417a23b
118 changed files with 836 additions and 852 deletions

View file

@ -1,19 +1,20 @@
import poses from './poses'
import { fail, ohno, shrug, shrug2, yay } from './poses.mjs'
// pose is one of:
// fail,
// ohno,
// shrug,
// shrug2,
// yay
const poses = {
fail,
ohno,
shrug,
shrug2,
yay,
}
const Robot = ({
export const Robot = ({
size = 124,
viewBox = '0 0 500 500',
className = '',
pose = 'yay',
color = false,
embed = false
embed = false,
}) => (
<svg
className={className || ''}
@ -25,5 +26,3 @@ const Robot = ({
<path stroke="none" fill={color ? color : 'currentColor'} d={poses[pose]} />
</svg>
)
export default Robot

File diff suppressed because one or more lines are too long