import * as React from 'react' ; import { Button } from 'baseui/button' ; import { useStyletron } from 'baseui' ; export const sum = ( a , b ) => a + b ; const Index = ( ) => { const [ css , theme ] = useStyletron ( ) ; return ( < div > < Button onClick = { ( ) => console . log ( 'hey' ) } > Hello < /Button> < p className = { css ( { color : theme . colors . accent600 } ) } > Styled by hook < /p> < /div>); } ; export default Index ;