mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
23 lines
516 B
TypeScript
23 lines
516 B
TypeScript
![]() |
import { Flex } from '@chakra-ui/core';
|
||
|
import { useColorValue } from '~/context';
|
||
|
|
||
|
export const CardBody = (props: ICardBody) => {
|
||
|
const { onClick, ...rest } = props;
|
||
|
const bg = useColorValue('white', 'original.dark');
|
||
|
const color = useColorValue('original.dark', 'white');
|
||
|
return (
|
||
|
<Flex
|
||
|
bg={bg}
|
||
|
w="100%"
|
||
|
maxW="100%"
|
||
|
rounded="md"
|
||
|
color={color}
|
||
|
onClick={onClick}
|
||
|
overflow="hidden"
|
||
|
borderWidth="1px"
|
||
|
direction="column"
|
||
|
{...rest}
|
||
|
/>
|
||
|
);
|
||
|
};
|