diff --git a/web/packages/new/photos/components/PlaceholderThumbnails.tsx b/web/packages/new/photos/components/PlaceholderThumbnails.tsx
index ab874848e6..1768cf9c82 100644
--- a/web/packages/new/photos/components/PlaceholderThumbnails.tsx
+++ b/web/packages/new/photos/components/PlaceholderThumbnails.tsx
@@ -5,40 +5,50 @@ import PlayCircleOutlineOutlinedIcon from "@mui/icons-material/PlayCircleOutline
import { styled } from "@mui/material";
import React from "react";
-interface Iprops {
+/**
+ * A thumbnail shown when we're loading the thumbnail for a file.
+ * @returns
+ */
+export const LoadingThumbnail = () => (
+
+);
+
+interface StaticThumbnailProps {
+ /**
+ * The type of the file for which we're showing the placeholder thumbnail.
+ */
fileType: FileType;
}
+/**
+ * A thumbnail shown when a file does not have a thumbnail.
+ */
+export const StaticThumbnail: React.FC = ({
+ fileType,
+}) => (
+ svg": {
+ color: "stroke.muted",
+ fontSize: "50px",
+ },
+ }}
+ >
+ {fileType != FileType.video ? (
+
+ ) : (
+
+ )}
+
+);
+
const CenteredOverlay = styled(Overlay)`
display: flex;
justify-content: center;
align-items: center;
`;
-
-export const StaticThumbnail: React.FC = (props) => {
- return (
- ({
- backgroundColor: theme.colors.fill.faint,
- borderWidth: "1px",
- borderStyle: "solid",
- borderColor: theme.colors.stroke.faint,
- borderRadius: "4px",
- "& > svg": {
- color: theme.colors.stroke.muted,
- fontSize: "50px",
- },
- })}
- >
- {props.fileType !== FileType.video ? (
-
- ) : (
-
- )}
-
- );
-};
-
-export const LoadingThumbnail = () => (
-
-);