Debian Codegraph @

node/@patternfly/react-table/src/deprecated/components/Table/HeaderCell.tsx

raw
1 import { Th } from '../../../components';
2
3 export interface HeaderCellProps {
4 'data-label'?: string;
5 className?: string;
6 component?: React.ReactNode;
7 isVisible?: boolean;
8 scope?: string;
9 textCenter?: boolean;
10 dataLabel?: string;
11 tooltip?: string;
12 onMouseEnter?: (event: any) => void;
13 children: React.ReactNode;
14 }
15
16 export const HeaderCell: React.FunctionComponent<HeaderCellProps> = ({
17 className = '',
18 component = 'th',
19 scope = '',
20 textCenter = false,
21 tooltip = '',
22 onMouseEnter = () => {},
23 children,
24 /* eslint-disable @typescript-eslint/no-unused-vars */
25 isVisible,
26 dataLabel = '',
27 /* eslint-enable @typescript-eslint/no-unused-vars */
28 ...props
29 }: HeaderCellProps) => (
30 <Th
31 {...props}
32 scope={scope}
33 tooltip={tooltip}
34 onMouseEnter={onMouseEnter}
35 textCenter={textCenter}
36 component={component}
37 className={className}
38 >
39 {children}
40 </Th>
41 );
42 HeaderCell.displayName = 'HeaderCell';