import React from 'react'; import styles from './panel.scss'; import icons from './icons.scss'; export function Panel(props) { var { title, icon } = props; if (icon) { icon = ( ); } if (title) { title = ( {icon} {title} ); } return (
{title} {props.children}
); } export function PanelHeader(props) { return (
{props.children}
); } export function PanelBody(props) { return (
{props.children}
); } export function PanelFooter(props) { return (
{props.children}
); } export function PanelBodyHeader(props) { var { type = 'default' } = props; var close; if (type === 'error') { close = ( ); } return (
{close} {props.children}
); }