import router from 'next/router' import ActionBar from '~/components/admin/actionBar' import {FormController, Input, Button} from '~/components/form' ShippingFrom.getInitialProps = async ({ctx: {axios}}) => { const {data: {shipping_from: address}} = await axios.get(`/api/config`) return {address} } export default function ShippingFrom({address}) { const afterSave = () => { router.push(`/admin/config`) } return ( <> value.length > 0}/> value.length > 0}/> value.length > 0}/> value.length > 0}/> value.length > 0}/> value.length > 0}/> value.length > 0}/> ) }