Files
gridpilot.gg/apps/website/ui/PlaceholderImage.tsx
2026-01-18 23:24:30 +01:00

34 lines
759 B
TypeScript

import { User } from 'lucide-react';
import { Box } from './Box';
import { Icon } from './Icon';
export interface PlaceholderImageProps {
width?: string | number;
height?: string | number;
size?: string | number;
className?: string;
}
export const PlaceholderImage = ({
width,
height,
size,
className
}: PlaceholderImageProps) => {
const dimension = size || '100%';
return (
<Box
width={width || dimension}
height={height || dimension}
display="flex"
alignItems="center"
justifyContent="center"
bg="var(--ui-color-bg-surface-muted)"
style={{ borderRadius: 'var(--ui-radius-md)' }}
className={className}
>
<Icon icon={User} size={6} intent="low" />
</Box>
);
};