Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | import { Stack, Text } from '@wordpress/ui';
import GooglePhotosDisconnect from './google-photos-disconnect';
const GooglePhotosAccount = ( {
account,
setAuthenticated,
disconnectBtnVariant,
showAccountInfo = true,
} ) => {
const { image, name } = account || {};
return (
<Stack direction="column" gap="sm" className="jetpack-external-media-header__account">
{ showAccountInfo && (
<Stack direction="row" gap="sm" align="center">
{ image && (
<img
className="jetpack-external-media-header__account-image"
src={ image }
alt=""
height="18"
width="18"
/>
) }
{ name && <Text className="jetpack-external-media-header__account-name">{ name }</Text> }
</Stack>
) }
<GooglePhotosDisconnect
setAuthenticated={ setAuthenticated }
buttonVariant={ disconnectBtnVariant }
/>
</Stack>
);
};
export default GooglePhotosAccount;
|