+ {t('account_editor_split_hint')}
+
+ {
+ setRatio(Number(event.target.value));
+ }}
+ />
+
+ {t('editor_percent_suffix')}}
+ onChange={(text) => {
+ onPercent(text, setViewerText, setPartnerText);
+ }}
+ />
+ {t('editor_percent_suffix')}}
+ onChange={(text) => {
+ onPercent(text, setPartnerText, setViewerText);
+ }}
+ />
+
+
+ {PRESETS_BP.map((bp) => (
+
+ ))}
+
+ {/* Of 100,00 kr each share in öre equals its bp (10 000 öre × bp / 10 000), so no rounding applies. */}
+
+
+
+ {viewerBp === null || !ratioValid
+ ? t('error_ratio_invalid')
+ : t(
+ 'account_editor_preview',
+ formatMoney(PREVIEW_ORE, language),
+ [
+ t('common_user_split', viewer.display_name, formatMoney(viewerBp, language)),
+ t('common_user_split', partner.display_name, formatMoney(BP_TOTAL - viewerBp, language)),
+ ].join(t('common_separator_comma')),
+ )}
+
+
+
+