(props: ColumnContentProps)
| 856 | Pick<ColumnProps, 'align' | 'children'> {} |
| 857 | |
| 858 | function ColumnContents(props: ColumnContentProps) { |
| 859 | let {align, allowsSorting, sortDirection, children} = props; |
| 860 | |
| 861 | return ( |
| 862 | <div className={columnContentWrapper({align})}> |
| 863 | {allowsSorting && ( |
| 864 | <Provider |
| 865 | values={[ |
| 866 | [ |
| 867 | IconContext, |
| 868 | { |
| 869 | styles: sortIcon({}) |
| 870 | } |
| 871 | ] |
| 872 | ]}> |
| 873 | {sortDirection != null && |
| 874 | (sortDirection === 'ascending' ? <SortUpArrow /> : <SortDownArrow />)} |
| 875 | </Provider> |
| 876 | )} |
| 877 | <span className={columnHeaderText}>{children}</span> |
| 878 | </div> |
| 879 | ); |
| 880 | } |
| 881 | |
| 882 | const resizableMenuButtonWrapper = style({ |
| 883 | ...cellFocus, |
nothing calls this directly
no outgoing calls
no test coverage detected