|
1 | | -import HighTable, { DataFrame, rowCache, stringify } from 'hightable' |
| 1 | +import HighTable, { DataFrame, rowCache } from 'hightable' |
2 | 2 | import { asyncBufferFromUrl, parquetMetadataAsync } from 'hyparquet' |
3 | 3 | import React, { useCallback, useEffect, useState } from 'react' |
4 | 4 | import { RoutesConfig, appendSearchParams } from '../../lib/routes.js' |
5 | 5 | import { FileSource } from '../../lib/sources/types.js' |
6 | 6 | import { parquetDataFrame } from '../../lib/tableProvider.js' |
| 7 | +import { cn } from '../../lib/utils.js' |
7 | 8 | import styles from '../../styles/ParquetView.module.css' |
8 | 9 | import { Spinner } from '../Layout.js' |
9 | 10 | import CellPanel from './CellPanel.js' |
10 | 11 | import ContentHeader, { ContentSize } from './ContentHeader.js' |
11 | 12 | import SlidePanel, { SlidePanelConfig } from './SlidePanel.js' |
12 | 13 |
|
13 | | -export type ParquetViewConfig = SlidePanelConfig & RoutesConfig |
| 14 | +interface HighTableConfig { |
| 15 | + hightable?: { |
| 16 | + className?: string; |
| 17 | + } |
| 18 | +} |
| 19 | +export type ParquetViewConfig = SlidePanelConfig & RoutesConfig & HighTableConfig |
14 | 20 |
|
15 | 21 | interface ViewerProps { |
16 | 22 | source: FileSource |
@@ -102,8 +108,7 @@ export default function ParquetView({ source, setProgress, setError, config }: V |
102 | 108 | onDoubleClickCell={onDoubleClickCell} |
103 | 109 | onMouseDownCell={onMouseDownCell} |
104 | 110 | onError={setError} |
105 | | - className={styles.hightable} |
106 | | - stringify={stringify} |
| 111 | + className={cn(styles.hightable, config?.hightable?.className)} |
107 | 112 | />} |
108 | 113 |
|
109 | 114 | {isLoading && <div className='center'><Spinner /></div>} |
|
0 commit comments