MCPcopy Create free account
hub / github.com/dailydotdev/apps / ConditionalRender

Function ConditionalRender

packages/shared/src/components/ConditionalWrapper.tsx:17–26  ·  view source on GitHub ↗
({
  condition,
  children,
}: Pick<ConditionalWrapperProps, 'condition' | 'children'>)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected