import { View, Text } from "@tarojs/components";
import './Header.scss'

export default function Component(props: { title: string, action?: Function }) {
    return <View className="header">
        <Text className="header_title">{props.title}</Text>
        <Text className="header_action" onClick={() => { props.action!() }}>显示更多</Text>
    </View>
}