mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
6 lines
172 B
TypeScript
6 lines
172 B
TypeScript
import { motion } from 'framer-motion';
|
|
|
|
export function withAnimation<P>(Component: React.FunctionComponent) {
|
|
return motion.custom<Omit<P, 'transition'>>(Component);
|
|
}
|