mirror of
https://github.com/austinried/subtracks.git
synced 2025-12-27 00:59:28 +01:00
14 lines
561 B
TypeScript
14 lines
561 B
TypeScript
import GradientBackground, { GradientBackgroundProps } from '@app/components/GradientBackground'
|
|
import React from 'react'
|
|
import BackgroundHeaderFlatList, { BackgroundHeaderFlatListPropsBase } from './BackgroundHeaderFlatList'
|
|
|
|
export type GradientFlatListProps<ItemT> = BackgroundHeaderFlatListPropsBase<ItemT> & {
|
|
backgroundProps?: GradientBackgroundProps
|
|
}
|
|
|
|
function GradientFlatList<ItemT>(props: GradientFlatListProps<ItemT>) {
|
|
return <BackgroundHeaderFlatList BackgroundComponent={GradientBackground} {...props} />
|
|
}
|
|
|
|
export default GradientFlatList
|