import { MainColorType } from "@/context/themes/color"; import { rpxToPx } from "@/utils/tools"; import { ScrollView, View } from "@tarojs/components"; export default function StickyDateList(props: { header?: any, children: any, footer?: any, onRefresherRefresh: any, isPulling: boolean, loadMore?: any, onScroll: any, showDate: boolean, date: string, disable?: boolean, }) { function headerDate() { if (global.language == 'en') { return props.date.substring(0, 4) } return props.date.substring(0, 5) } return {headerDate()} { props.header } { props.children } { props.footer } }