({
children,
...rest
})
| 3 | interface FadeInBoxProps extends BoxProps {} |
| 4 | |
| 5 | export const FadeInBox: React.FC<React.PropsWithChildren<FadeInBoxProps>> = ({ |
| 6 | children, |
| 7 | ...rest |
| 8 | }) => { |
| 9 | const isMounted = useDidMount() |
| 10 | |
| 11 | return ( |
| 12 | <Box |
| 13 | opacity={isMounted ? 1 : 0} |
| 14 | style={{ |
| 15 | transition: "opacity 250ms", |
| 16 | }} |
| 17 | {...rest} |
| 18 | > |
| 19 | {children} |
| 20 | </Box> |
| 21 | ) |
| 22 | } |
nothing calls this directly
no test coverage detected