(props: CellProps)
| 178 | }); |
| 179 | |
| 180 | export function Cell(props: CellProps) { |
| 181 | return ( |
| 182 | <AriaCell |
| 183 | {...props} |
| 184 | className={cellStyles} |
| 185 | style={({hasChildItems, isTreeColumn, level}) => ({ |
| 186 | paddingInlineStart: isTreeColumn |
| 187 | ? 4 + (hasChildItems ? 0 : 20) + (level - 1) * 16 |
| 188 | : undefined |
| 189 | })}> |
| 190 | {composeRenderProps( |
| 191 | props.children, |
| 192 | (children, {hasChildItems, isTreeColumn, isExpanded, isDisabled}) => ( |
| 193 | <> |
| 194 | {hasChildItems && isTreeColumn && ( |
| 195 | <Button slot="chevron" className={expandButton({isDisabled})}> |
| 196 | <ChevronRight aria-hidden className={chevron({isExpanded, isDisabled})} /> |
| 197 | </Button> |
| 198 | )} |
| 199 | {children} |
| 200 | </> |
| 201 | ) |
| 202 | )} |
| 203 | </AriaCell> |
| 204 | ); |
| 205 | } |
nothing calls this directly
no test coverage detected