(props)
| 21 | } |
| 22 | |
| 23 | export const BackgroundColor: React.FC<Props> = (props) => { |
| 24 | const { |
| 25 | id, |
| 26 | className, |
| 27 | children, |
| 28 | paddingTop, |
| 29 | paddingBottom, |
| 30 | color = 'white', |
| 31 | } = props |
| 32 | |
| 33 | return ( |
| 34 | <div |
| 35 | id={id} |
| 36 | className={[classes[color], className].filter(Boolean).join(' ')} |
| 37 | > |
| 38 | <BackgroundColorContext.Provider value={color}> |
| 39 | <VerticalPadding top={paddingTop} bottom={paddingBottom}> |
| 40 | {children} |
| 41 | </VerticalPadding> |
| 42 | </BackgroundColorContext.Provider> |
| 43 | </div> |
| 44 | ) |
| 45 | } |
nothing calls this directly
no outgoing calls
no test coverage detected