mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-04-18 13:58:27 +00:00
9 lines
354 B
TypeScript
9 lines
354 B
TypeScript
import { Box } from '@chakra-ui/react';
|
|
import { useColorValue } from '~/context';
|
|
|
|
import type { BoxProps } from '@chakra-ui/react';
|
|
|
|
export const TableHead: React.FC<BoxProps> = (props: BoxProps) => {
|
|
const bg = useColorValue('blackAlpha.100', 'whiteAlpha.100');
|
|
return <Box as="thead" overflowX="hidden" overflowY="auto" bg={bg} {...props} />;
|
|
};
|