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 39 40 | 263x 257x 257x 257x | import type React from "react";
import { useTranslation } from "react-i18next";
import { useLocale } from "~app/hooks/use-locale";
import { getCurrencySymbol } from "~app/utils/currency";
import type { CurrencyCode } from "~app/utils/currency";
import { Icon } from "~components/icons";
import { Text } from "~components/text";
import { cn } from "~components/utils";
import { View } from "~components/view";
type Props = {
currencyCode: CurrencyCode;
} & React.ComponentProps<typeof View>;
export const EvenDebtsDivider: React.FC<Props> = ({
currencyCode,
className,
...props
}) => {
const { t } = useTranslation("debts");
const locale = useLocale();
return (
<View
className={cn(
"flex flex-row items-center justify-center gap-2",
className,
)}
testID="even-debts-divider"
{...props}
>
<Icon name="check" className="text-success size-6" />
<Text>
{t("peer.even", { currency: getCurrencySymbol(locale, currencyCode) })}
</Text>
</View>
);
};
|