"use client";

import dynamic from "next/dynamic";
import { PickerProps } from "emoji-picker-react";

// Use dynamic with `ssr: false` and set the default export properly
const EmojiPicker = dynamic<PickerProps>(
  () => import("emoji-picker-react").then((mod: any) => mod.default),
  { ssr: false }
);

export default EmojiPicker;
