({
condition,
children,
}: Pick<ConditionalWrapperProps, 'condition' | 'children'>)
| 15 | export default ConditionalWrapper; |
| 16 | |
| 17 | export const ConditionalRender = ({ |
| 18 | condition, |
| 19 | children, |
| 20 | }: Pick<ConditionalWrapperProps, 'condition' | 'children'>): ReactNode => { |
| 21 | if (!condition) { |
| 22 | return null; |
| 23 | } |
| 24 | |
| 25 | return children; |
| 26 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected