This commit is contained in:
Archer
2023-10-30 13:26:42 +08:00
committed by GitHub
parent 008d0af010
commit 60ee160131
216 changed files with 4429 additions and 2229 deletions

View File

@@ -0,0 +1,19 @@
import { Box, Flex } from '@chakra-ui/react';
import React from 'react';
import MyIcon, { type IconName } from '@/components/Icon';
const ChatBoxDivider = ({ icon, text }: { icon: IconName; text: string }) => {
return (
<Box>
<Flex alignItems={'center'} py={2} gap={2}>
<MyIcon name={icon} w={'14px'} color={'myGray.900'} />
<Box color={'myGray.500'} fontSize={'sm'}>
{text}
</Box>
<Box h={'1px'} mt={1} bg={'myGray.200'} flex={'1'} />
</Flex>
</Box>
);
};
export default ChatBoxDivider;