Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/input/baseInput/baseInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ function showEmojiInfo(emoji: EmojiInfo) {
}
}

const database = new Database()

/**
* The `TextInput` component enables users to input text messages and send them over a WebSocket connection. It provides functionality for sending messages with a sender, timestamp, and conversation ID. The component integrates with the [emoji-picker-element](https://www.npmjs.com/package/emoji-picker-element) library to allow users to easily add emojis to their messages. The emoji picker can be customized through CSS variables. For detailed customization options, refer to the [emoji-picker-element documentation](https://www.npmjs.com/package/emoji-picker-element#css-variables).
*
Expand Down Expand Up @@ -115,8 +117,6 @@ function BaseInputElement(
setIsEmojiMenuShown(false)
}

const database = new Database()

function searchEmojis(query: string) {
database
.getEmojiBySearchQuery(query)
Expand Down