"use client"; import { Box } from '@mui/material'; import Grid2 from '@mui/material/Grid2'; import Typography from '@mui/material/Typography'; import { useAtom } from 'jotai'; import React from 'react'; import { useTranslation } from 'react-i18next'; import CustomerAtom from '@atoms/states/CustomerAtom'; const CustomerHeader: React.FC = () => { const [customer] = useAtom(CustomerAtom); const { t } = useTranslation() return ( {customer ? `${t("lbl_name_customer")}: ${customer.name} ${customer.firstSurname}` : `${t("lbl_name_customer")}: AnĂ³nimo`} {customer ? `${t("lbl_dni_customer")}: ${customer.dni}` : `${t("lbl_dni_customer")}: 222222222222`} {customer ? `${t("lbl_email_customer")}: ${customer.mail}` : `${t("lbl_email_customer")}: generic@example.com`} ); }; export default CustomerHeader;