Uecko_ERP/modules/customer-invoices/src/web/components/customer-invoice-editor-skeleton.tsx

35 lines
1.3 KiB
TypeScript
Raw Normal View History

2025-09-17 17:37:41 +00:00
// components/CustomerSkeleton.tsx
2025-10-20 18:40:28 +00:00
import { AppContent, BackHistoryButton } from "@repo/rdx-ui/components";
2025-09-17 17:37:41 +00:00
import { Button } from "@repo/shadcn-ui/components";
import { useTranslation } from "../i18n";
2025-09-29 18:22:59 +00:00
export const CustomerInvoiceEditorSkeleton = () => {
2025-09-17 17:37:41 +00:00
const { t } = useTranslation();
return (
<>
<AppContent>
<div className='flex items-center justify-between'>
<div className='space-y-2' aria-hidden='true'>
<div className='h-7 w-64 rounded-md bg-muted animate-pulse' />
<div className='h-5 w-96 rounded-md bg-muted animate-pulse' />
</div>
<div className='flex items-center gap-2'>
<BackHistoryButton />
<Button disabled aria-busy>
{t("pages.update.submit")}
</Button>
</div>
</div>
<div className='mt-6 grid gap-4' aria-hidden='true'>
<div className='h-10 w-full rounded-md bg-muted animate-pulse' />
<div className='h-10 w-full rounded-md bg-muted animate-pulse' />
<div className='h-28 w-full rounded-md bg-muted animate-pulse' />
</div>
2025-09-29 18:22:59 +00:00
<span className='sr-only'>
{t("pages.update.loading", "Cargando factura de cliente...")}
</span>
2025-09-17 17:37:41 +00:00
</AppContent>
</>
);
};