import { View } from "@tarojs/components"; import BottomBar from "@/components/BottomBar"; import PageCustom from "@/components/page-custom/index"; import NavBarNormal from "@/components/NavBarNormal/index"; import editorStyle from "../editor.module.less"; import { useAgentStore } from "@/store/agentStore"; import WemetaTextarea from "@/components/wemeta-textarea/index"; import useEditContactCard from "@/hooks/useEditContactCard"; export default function Index() { const agentCard = useAgentStore((state) => state.agentContactCard); const { value, onChange, handleSubmit } = useEditContactCard( "mobile", agentCard?.mobile ); return ( onChange(value)} onInput={(value: string) => onChange(value)} placeholder="填写手机号码" autoFocus /> 保存 ); }