give
/
src
/
Promotions
/
WelcomeBanner
/
resources
/
js
/
app
/
components
/
SpotLight
Last commit date
index.tsx
2 years ago
styles.scss
2 years ago
index.tsx
23 lines
| 1 | import './styles.scss'; |
| 2 | |
| 3 | type SpotLightProps = { |
| 4 | title: string | JSX.Element; |
| 5 | description: string; |
| 6 | children: any; |
| 7 | }; |
| 8 | |
| 9 | /** |
| 10 | * @since 3.0.0 |
| 11 | */ |
| 12 | export default function SpotLight({title, description, children}: SpotLightProps) { |
| 13 | return ( |
| 14 | <div className={'givewp-welcome-banner-spotlight-container'}> |
| 15 | {children} |
| 16 | <div className={'givewp-welcome-banner-spotlight-container__details'}> |
| 17 | <h2>{title}</h2> |
| 18 | <p>{description}</p> |
| 19 | </div> |
| 20 | </div> |
| 21 | ); |
| 22 | } |
| 23 |