"use client";
import Box from "@mui/material/Box";
import Skeleton from "@mui/material/Skeleton";
import Stack from "@mui/material/Stack";
import { useTheme } from "@mui/material/styles";
// Placeholder row count for first-load skeleton (layout only; unrelated to `PO_WORKBENCH_LIST_PAGE_SIZE`).
const SKELETON_PLACEHOLDER_ROW_COUNT = 8;
const ROW_SHELL_SX = {
pt: 1.25,
pb: 1,
px: 2,
borderBottom: 1,
borderColor: "divider",
borderLeftStyle: "solid",
borderLeftWidth: 10,
borderLeftColor: "transparent",
} as const;
function SearchResultRowSkeleton() {
const theme = useTheme();
const body1Skeleton = {
fontSize: theme.typography.body1.fontSize,
lineHeight: theme.typography.body1.lineHeight,
};
const body2Skeleton = {
fontSize: theme.typography.body2.fontSize,
lineHeight: theme.typography.body2.lineHeight,
};
return (
);
}
/** Placeholder rows while the first `/po/list` page is loading (matches list row layout). */
export default function PoWorkbenchSearchResultsListSkeleton() {
return (
{Array.from({ length: SKELETON_PLACEHOLDER_ROW_COUNT }, (_, i) => (
))}
);
}