mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-14 05:14:28 -08:00
14 lines
234 B
JavaScript
14 lines
234 B
JavaScript
const h = React.createElement
|
|
|
|
const Link = ({ active, children, onClick }) => (
|
|
h('button', {
|
|
onClick,
|
|
disabled: active,
|
|
style:{
|
|
marginLeft: '4px',
|
|
}
|
|
}, children)
|
|
)
|
|
|
|
export default Link
|