🚸 (editor) Add graph gesture notification

This commit is contained in:
Baptiste Arnaud
2024-01-24 10:15:40 +01:00
parent d85a03f621
commit bf6c258edc
17 changed files with 154 additions and 59 deletions

View File

@@ -0,0 +1,33 @@
import { colors } from '@/lib/theme'
import { useColorMode, useColorModeValue } from '@chakra-ui/react'
import { Toaster as SonnerToaster } from 'sonner'
export const Toaster = () => {
const { colorMode } = useColorMode()
const theme = useColorModeValue(
{
bg: undefined,
actionBg: colors.blue[500],
actionColor: undefined,
},
{
bg: colors.gray[900],
actionBg: colors.blue[400],
actionColor: 'white',
}
)
return (
<SonnerToaster
theme={colorMode}
toastOptions={{
actionButtonStyle: {
backgroundColor: theme.actionBg,
color: theme.actionColor,
},
style: {
backgroundColor: theme.bg,
},
}}
/>
)
}

View File

@@ -643,3 +643,11 @@ export const XCircleIcon = (props: IconProps) => (
<path d="m9 9 6 6" />
</Icon>
)
export const LightBulbIcon = (props: IconProps) => (
<Icon viewBox="0 0 24 24" {...featherIconsBaseProps} {...props}>
<path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5" />
<path d="M9 18h6" />
<path d="M10 22h4" />
</Icon>
)