import Icon from "shared/components/icon" const colors = { note: 'accent', tip: 'secondary', warning: 'error', fixme: 'warning', link: 'info', related: 'info', none: '', } const Popout = (props) => { let type = 'none' for (const t in colors) { if (props[t]) type = t } const color = colors[type] return (
{type}
{props.children}
) } export default Popout