);
}
const tilts = ['135deg', '200deg', '45deg', '310deg'];
/**
* Stands in for a photo when there is no real one.
* It is drawn from the theme colours so it always matches the store.
*/
export function ImagePlaceholder({
seed = 0,
label,
className,
}: {
seed?: number;
label?: string;
className?: string;
}) {
const tilt = tilts[seed % tilts.length];
// The first letter of the product or headline, set large in the store's heading font,
// so a store without photos still looks designed rather than unfinished.
const letter = label?.trim().charAt(0).toUpperCase() ?? '';
return (