diff --git a/web/packages/new/photos/components/Gallery/ListHeader.tsx b/web/packages/new/photos/components/Gallery/ListHeader.tsx index e60d704509..e7b053f4d4 100644 --- a/web/packages/new/photos/components/Gallery/ListHeader.tsx +++ b/web/packages/new/photos/components/Gallery/ListHeader.tsx @@ -1,11 +1,13 @@ -import { FlexWrapper } from "@ente/shared/components/Container"; -import { Box, styled, Typography } from "@mui/material"; +import { Box, Stack, styled, Typography } from "@mui/material"; import { t } from "i18next"; import React from "react"; interface GalleryItemsSummaryProps { + /** The name / title for the items that are being shown. */ name: string; + /** The number of items being shown. */ fileCount: number; + /** An element (usually an icon) placed after the file count. */ endIcon?: React.ReactNode; } @@ -22,19 +24,18 @@ export const GalleryItemsSummary: React.FC = ({
{name} - + {t("photos_count", { count: fileCount })} {endIcon && ( {endIcon} )} - +
); };