Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame
518 Bytes
import { JSX } from 'react'
import { Valid } from '../types/common'
import { TransitionComponentProps } from '../types'
import { useTransition } from '../hooks'
export function Transition<Item, Props extends TransitionComponentProps<Item>>(
props:
| TransitionComponentProps<Item>
| (Props & Valid<Props, TransitionComponentProps<Item, Props>>)
): JSX.Element
export function Transition({
items,
children,
...props
}: TransitionComponentProps<any>) {
return useTransition(items, props)(children)
}