import styled , { css } from 'reshadow' ; import { StaticImage } from '@cloudbeaver/core-blocks' ; const styles = css `
  StaticImage {
    height: 100%;
  }
` ; interface Props { icon ? : string ; className ? : string ; } export const TreeNodeIcon = function TreeNodeIcon ( { icon , className , children , } ) { return styled ( styles ) ( < icon className = { className } > < StaticImage icon = { icon } / > { children } < /icon>); } ;