♿ Add an update notification popup
Appears when a new version of Typebot is available Closes #312
This commit is contained in:
12
apps/builder/src/components/MotionStack.tsx
Normal file
12
apps/builder/src/components/MotionStack.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import { forwardRef, Stack, StackProps } from '@chakra-ui/react'
|
||||
import { motion, MotionProps, isValidMotionProp } from 'framer-motion'
|
||||
|
||||
export const MotionStack = motion(
|
||||
forwardRef<MotionProps & StackProps, 'div'>((props, ref) => {
|
||||
const chakraProps = Object.fromEntries(
|
||||
Object.entries(props).filter(([key]) => !isValidMotionProp(key))
|
||||
)
|
||||
|
||||
return <Stack ref={ref} {...chakraProps} />
|
||||
})
|
||||
)
|
||||
Reference in New Issue
Block a user