index.tsx
22 lines
| 1 | import React from 'react'; |
| 2 | import styles from './styles.module.scss'; |
| 3 | |
| 4 | /** |
| 5 | * @since 4.5.0 |
| 6 | */ |
| 7 | interface OverviewPanelProps { |
| 8 | children: React.ReactNode; |
| 9 | className?: string; |
| 10 | } |
| 11 | |
| 12 | /** |
| 13 | * @since 4.5.0 |
| 14 | */ |
| 15 | export default function OverviewPanel({ children, className = '' }: OverviewPanelProps) { |
| 16 | return ( |
| 17 | <div className={`${styles.panel} ${className}`}> |
| 18 | {children} |
| 19 | </div> |
| 20 | ); |
| 21 | } |
| 22 |