1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

10 lines
334 B
TypeScript
Raw Normal View History

import { Box } from '@chakra-ui/react';
2020-11-03 01:51:41 -07:00
import { useColorValue } from '~/context';
import type { BoxProps } from '@chakra-ui/react';
2020-11-03 01:51:41 -07:00
export const TableHead = (props: BoxProps) => {
const bg = useColorValue('blackAlpha.100', 'whiteAlpha.100');
return <Box as="thead" overflowX="hidden" overflowY="auto" bg={bg} {...props} />;
};