import type { ReactNode } from 'react'; /** * Check if a ReactNode is truthy * * @param node - The ReactNode to check * @returns True if the node is not null, undefined, or false */ export function isTruthyReactNode(node: ReactNode): node is Exclude { return node !== null && node !== undefined && node !== false; }