signal-desktop/ts/components/AvatarSpacer.tsx

13 lines
362 B
TypeScript
Raw Normal View History

// Copyright 2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import type { ReactElement } from 'react';
import React from 'react';
import type { AvatarSize } from './Avatar';
2022-11-18 00:45:19 +00:00
export function AvatarSpacer({
size,
2022-11-18 00:45:19 +00:00
}: Readonly<{ size: AvatarSize }>): ReactElement {
return <div style={{ minWidth: size, height: size, width: size }} />;
}