import bar from './blocks/bar.block.css' ; import { h } from 'preact' ; import objstr from 'obj-str' ; import Awesome from './components/awesome-component' ; let style = objstr ( { [ bar . pretty ] : true , [ bar . pretty . color ( 'yellow' ) ] : false } ) ; export default function ( ) { return ( < div class = { bar } > < div class = { style } > < /div><Awesome></Awesome > < /div>); }