Files
mesh-forge/components/SourceAvailable.tsx
Ben Allfree 086a98050c lint fixes
2025-12-06 17:17:13 -08:00

17 lines
390 B
TypeScript

interface SourceAvailableProps {
sourcePath: string | undefined
children: React.ReactNode
}
/**
* Component that only renders children when sourcePath is available.
* Uses the sourcePath field from the build instead of polling.
*/
export function SourceAvailable({ sourcePath, children }: SourceAvailableProps) {
if (!sourcePath) {
return null
}
return <>{children}</>
}