Skip to content

emojiUtils Utility

File: src/utils/emojiUtils.ts

Overview

Exports

  • getEmojiUrl - function export

Functions

getEmojiUrl(emojiUrl: string | null | undefined, size: number = 48)

No description available.

Parameters:

  • emojiUrl: string | null | undefined
  • size: number = 48

Returns: string

typescript
/**
 * Get the public URL for an emoji, handling both local and remote emojis
 * Local emojis are processed through Supabase storage with transformation
 * Remote emojis (from federated instances) are returned as-is
 */
export function getEmojiUrl(emojiUrl: string | null | undefined, size: number = 48): string

Source Code Insights

File Size: 2472 characters Lines of Code: 58 Imports: 1

Usage Example

typescript
import { getEmojiUrl } from '@/utils/emojiUtils'

// Example usage
getEmojiUrl()

This documentation was automatically generated from the source code.

Released under the AGPL-3.0 License.