subtracks/app/components/GradientFlatList.tsx
2022-04-28 15:41:45 +09:00

16 lines
604 B
TypeScript

import GradientBackground, { GradientBackgroundProps } from '@app/components/GradientBackground'
import React from 'react'
import GradientBackgroundHeaderFlatList, {
GradientBackgroundHeaderFlatListPropsBase,
} from './GradientBackgroundHeaderFlatList'
export type GradientFlatListProps<ItemT> = GradientBackgroundHeaderFlatListPropsBase<ItemT> & {
backgroundProps?: GradientBackgroundProps
}
function GradientFlatList<ItemT>(props: GradientFlatListProps<ItemT>) {
return <GradientBackgroundHeaderFlatList BackgroundComponent={GradientBackground} {...props} />
}
export default GradientFlatList