import { Icon } from '../Icon' ; interface IProps { onClick ? : ( ) => void ; } export const GroupClose = function GroupClose ( { onClick , ... rest } ) { return < div { ... rest } > < Icon name = "cross" viewBox = "0 0 16 16" onClick = { onClick } / > < /div>; } ;