blob: 0a55333ee0d30eb833d4b1166108660dd26fc9a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/**
* External dependencies
*/
import { __ } from '@wordpress/i18n';
/**
* Internal dependencies
*/
import save from './save';
import simpleInput from '../../../shared/simple-input';
const PhoneEdit = props => {
const { setAttributes } = props;
return simpleInput( 'phone', props, __( 'Phone number', 'jetpack' ), save, nextValue =>
setAttributes( { phone: nextValue } )
);
};
export default PhoneEdit;
|