'use client'; import type { ReactNode } from 'react'; import type { UseEmojiPickerType } from '@udecode/plate-emoji/react'; export type EmojiPickerSearchBarProps = { children: ReactNode; } & Pick; export function EmojiPickerSearchBar({ children, i18n, searchValue, setSearch, }: EmojiPickerSearchBarProps) { return (
setSearch(event.target.value)} placeholder={i18n.search} aria-label="Search" autoComplete="off" type="text" autoFocus /> {children}
); }