about summary refs log tree commit diff
path: root/src/view/com/composer/text-input/web/EmojiPicker.tsx
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-04-25 00:15:46 +0300
committerGitHub <noreply@github.com>2025-04-24 16:15:46 -0500
commit278a54850b666c55f03469ebbe7415e4ccb7be41 (patch)
treee1e96c2930ac32bac9568e6f66536f966102c972 /src/view/com/composer/text-input/web/EmojiPicker.tsx
parentb6a6b1bab4683ea9e9dcdcc1b10665246b8f8662 (diff)
downloadvoidsky-278a54850b666c55f03469ebbe7415e4ccb7be41.tar.zst
Keep all radix dependencies aligned by using single package (#8219)
* keep all radix deps aligned by using single package

* import directly from `radix-ui` or `radix-ui/internal`

* prevent radix leaking into native build
Diffstat (limited to 'src/view/com/composer/text-input/web/EmojiPicker.tsx')
-rw-r--r--src/view/com/composer/text-input/web/EmojiPicker.tsx37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/view/com/composer/text-input/web/EmojiPicker.tsx b/src/view/com/composer/text-input/web/EmojiPicker.tsx
new file mode 100644
index 000000000..5001753a5
--- /dev/null
+++ b/src/view/com/composer/text-input/web/EmojiPicker.tsx
@@ -0,0 +1,37 @@
+export type Emoji = {
+  aliases?: string[]
+  emoticons: string[]
+  id: string
+  keywords: string[]
+  name: string
+  native: string
+  shortcodes?: string
+  unified: string
+}
+
+export interface EmojiPickerPosition {
+  top: number
+  left: number
+  right: number
+  bottom: number
+  nextFocusRef: React.MutableRefObject<HTMLElement> | null
+}
+
+export interface EmojiPickerState {
+  isOpen: boolean
+  pos: EmojiPickerPosition
+}
+
+interface IProps {
+  state: EmojiPickerState
+  close: () => void
+  /**
+   * If `true`, overrides position and ensures picker is pinned to the top of
+   * the target element.
+   */
+  pinToTop?: boolean
+}
+
+export function EmojiPicker(_opts: IProps) {
+  return null
+}