File size: 413 Bytes
c9c900b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | import type { RenderElement } from 'claude-code'
import { keptOf } from '../../../kept-of'
/**
* The children that are there: nulls dropped, so a part may answer null for
* "nothing to draw" and the parent lists it all the same.
*
* @param children elements or nulls
* @returns the elements
*/
export const present = (
children: readonly (RenderElement | null)[],
): RenderElement[] => keptOf(children)
|