Files
Desktop/ts/components/fun/FunSticker.dom.tsx
Fedor Indutny 44076ece79 Rename files
2025-10-16 23:45:44 -07:00

27 lines
682 B
TypeScript

// Copyright 2024 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import React from 'react';
import { FunImage } from './base/FunImage.dom.js';
import type { FunImageAriaProps } from './types.dom.js';
export type FunStickerProps = FunImageAriaProps &
Readonly<{
src: string;
size: number;
ignoreReducedMotion?: boolean;
}>;
export function FunSticker(props: FunStickerProps): JSX.Element {
const { src, size, ignoreReducedMotion, ...ariaProps } = props;
return (
<FunImage
{...ariaProps}
className="FunSticker"
src={src}
width={size}
height={size}
ignoreReducedMotion={ignoreReducedMotion}
/>
);
}