import React from "react"; import Skeleton, { SkeletonTheme } from "react-loading-skeleton"; import "react-loading-skeleton/dist/skeleton.css"; import { useTranslation } from "react-i18next"; interface EstimatesTableSkeletonProps { rows?: number; } export const SchedulesTableSkeleton: React.FC = ({ rows = 3 }) => { const { t } = useTranslation(); return ( {Array.from({ length: rows }, (_, index) => ( ))}
{t("estimates.line", "Línea")} {t("estimates.route", "Ruta")} {t("estimates.arrival", "Llegada")} {t("estimates.distance", "Distancia")}
); }; interface EstimatesGroupedSkeletonProps { groups?: number; rowsPerGroup?: number; } export const EstimatesGroupedSkeleton: React.FC = ({ groups = 3, rowsPerGroup = 2 }) => { const { t } = useTranslation(); return ( {Array.from({ length: groups }, (_, groupIndex) => ( {Array.from({ length: rowsPerGroup }, (_, rowIndex) => ( ))} ))}
{t("estimates.line", "Línea")} {t("estimates.route", "Ruta")} {t("estimates.arrival", "Llegada")} {t("estimates.distance", "Distancia")}
{rowIndex === 0 && ( )}
); };