mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-26 21:28:40 +00:00
Rename files
This commit is contained in:
26
ts/components/fun/FunSticker.dom.tsx
Normal file
26
ts/components/fun/FunSticker.dom.tsx
Normal file
@@ -0,0 +1,26 @@
|
||||
// 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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user