import { FC } from 'react'; import { LocalizeText } from '../../api'; import { AvatarImageView } from '../../views/shared/avatar-image/AvatarImageView'; import { NitroLayoutGiftCardViewProps } from './NitroLayoutGiftCardView.types'; export const NitroLayoutGiftCardView: FC = props => { const { figure = null, userName = null, message = null, editable = false, onChange = null } = props; return (
{ !userName &&
} { figure &&
}
{ !editable &&
{ message }
} { editable && onChange && } { userName &&
{ LocalizeText('catalog.gift_wrapping_new.message_from', ['name'], [userName]) }
}
); };