MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / renderComponent

Function renderComponent

frontend/packages/common/src/utils/postcat.tsx:115–118  ·  view source on GitHub ↗
(content: ReactNode | null | undefined, fallbackComponent: ReactNode)

Source from the content-addressed store, hash-verified

113}
114
115export function renderComponent(content: ReactNode | null | undefined, fallbackComponent: ReactNode): ReactNode | null {
116 if (content === null) return null
117 return content ?? fallbackComponent
118}
119
120export function isNil(value: unknown): value is null | undefined {
121 return typeof value === 'undefined' || value === null

Callers 1

BaseDialogFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected