mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-16 14:18:29 +00:00
* add contributers * Add icon fetcher * add contributing json * Fix fetch call * Add contributers to site * Add caching for github api * Fix build * Move context provider * Revert packages changes * Fix mobile layout * remove react-spring * remove incorrect type prop
32 lines
727 B
TypeScript
32 lines
727 B
TypeScript
import { Box, Tooltip, useColorMode } from "@chakra-ui/core";
|
|
import theme from '../lib/theme';
|
|
|
|
const ModifiedTooltip = ({}) => {
|
|
const { colorMode } = useColorMode();
|
|
|
|
return (
|
|
<Tooltip
|
|
hasArrow
|
|
label="This is new or modified icon"
|
|
bg={colorMode === 'light' ? theme.colors.white : theme.colors.gray[700]}
|
|
color={colorMode === 'dark' ? theme.colors.white : null}
|
|
>
|
|
<Box
|
|
{
|
|
...{
|
|
position: 'absolute',
|
|
height: '8px',
|
|
width: '8px',
|
|
background: '#F56565',
|
|
top: '8px',
|
|
right: '8px',
|
|
borderRadius: '4px'
|
|
}
|
|
}
|
|
/>
|
|
</Tooltip>
|
|
)
|
|
}
|
|
|
|
export default ModifiedTooltip;
|