import { useState } from 'react' import CloseIcon from 'shared/components/icons/close.js' const colors = { comment: 'secondary', note: 'primary', tip: 'accent', warning: 'error', fixme: 'warning', link: 'secondary', related: 'info', none: '', } const Popout = (props) => { const [hide, setHide] = useState(false) if (hide) return null let type = 'none' for (const t in colors) { if (props[t]) type = t } const color = colors[type] const { className = '' } = props return props.compact ? (
{props.children}
}