/**
* Social Media Icons
*/
const { __ } = wp.i18n;
const { Component } = wp.element;
/**
* Create an SocialIcons wrapper Component
*/
export default class SocialIcons extends Component {
constructor( props ) {
super( ...arguments );
}
render() {
return (
{ this.props.attributes.website && !! this.props.attributes.website.length && (
-
{ __( 'Website', 'atomic-blocks' ) }
) }
{ this.props.attributes.twitter && !! this.props.attributes.twitter.length && (
-
{ __( 'Twitter', 'atomic-blocks' ) }
) }
{ this.props.attributes.facebook && !! this.props.attributes.facebook.length && (
-
{ __( 'Facebook', 'atomic-blocks' ) }
) }
{ this.props.attributes.instagram && !! this.props.attributes.instagram.length && (
-
{ __( 'Instagram', 'atomic-blocks' ) }
) }
{ this.props.attributes.pinterest && !! this.props.attributes.pinterest.length && (
-
{ __( 'Pinterest', 'atomic-blocks' ) }
) }
{ this.props.attributes.google && !! this.props.attributes.google.length && (
-
{ __( 'Google', 'atomic-blocks' ) }
) }
{ this.props.attributes.youtube && !! this.props.attributes.youtube.length && (
-
{ __( 'YouTube', 'atomic-blocks' ) }
) }
{ this.props.attributes.linkedin && !! this.props.attributes.linkedin.length && (
-
{ __( 'LinkedIn', 'atomic-blocks' ) }
) }
{ this.props.attributes.github && !! this.props.attributes.github.length && (
-
{ __( 'Github', 'atomic-blocks' ) }
) }
{ this.props.attributes.email && !! this.props.attributes.email.length && (
-
{ __( 'Email', 'atomic-blocks' ) }
) }
);
}
}