import {FC} from "react";
import {Image, View} from "@tarojs/components";
import styles from "../home.module.scss";
import Taro from "@tarojs/taro";
import search from "@/static/img/search.png"


export const Search: FC = () => {

  function jump() {
    Taro.navigateTo({url: '/pages/preview/search/search/index'})
  }

  return (
    <View className={styles.search} onClick={jump}>
      <Image src={search} mode='widthFix' style={{width: 16, height: 16, verticalAlign: 'middle',paddingRight:'10rpx'}}/>
      <View>点击搜索</View>
    </View>
  )
}
