( Comp: any, // TODO: add renderable type props: TProps, )
| 18 | isFunction(comp) && comp.name === 'QwikComponent' |
| 19 | |
| 20 | export function flexRender<TProps extends object>( |
| 21 | Comp: any, // TODO: add renderable type |
| 22 | props: TProps, |
| 23 | ) { |
| 24 | return !Comp ? null : isQwikComponent(Comp) ? ( |
| 25 | <Comp {...props} /> |
| 26 | ) : isFunction(Comp) ? ( |
| 27 | Comp(props) |
| 28 | ) : ( |
| 29 | Comp |
| 30 | ) |
| 31 | } |
| 32 | |
| 33 | export function useQwikTable<TData extends RowData>( |
| 34 | options: TableOptions<TData>, |
no test coverage detected