import { Stack, Text, Title } from "@mantine/core"; import type { FC } from "react"; import { useTranslation } from "react-i18next"; import type { BrokerageAccount } from "@/entities/brokerage-account"; import { accountTypeKey } from "@/entities/brokerage-account"; type AccountHeadingProps = { account?: BrokerageAccount; }; const AccountHeading: FC = (props) => { const { account } = props; const { t } = useTranslation(); return ( {account?.name ?? t("portfolio.title")} {account ? ( {t(accountTypeKey(account.type))} ) : null} ); }; export { AccountHeading };