mirror of
https://github.com/austinried/subtracks.git
synced 2025-12-27 09:09:29 +01:00
16 lines
604 B
TypeScript
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
|