Software Architecture, Design Principles.
{ if (loading) return <PanelCardSkeleton count={loading} />; return ( <Card className={classNames(styles.panelCard, className)}> <div className={styles.cardTitle}> {icon ? <Icon of={icon} className={styles.icon} /> : ''} {href ? <Link className={styles.link} href={href}>{title}</Link>: title}