import ReactOnRails from 'react-on-rails';

import UserSearchBar from '../bundles/Main/components/UserSearchBarServer';
import { UserMenu } from '../bundles/Main/components/UserMenu';
import { PostHoverPreviewWrapper } from '../bundles/Main/components/PostHoverPreviewWrapper';
import { UserHoverPreviewWrapper } from '../bundles/Main/components/UserHoverPreviewWrapper';

// This is how react_on_rails can see the UserSearchBar in the browser.
ReactOnRails.register({
  UserMenu,
  UserSearchBar,
  PostHoverPreviewWrapper,
  UserHoverPreviewWrapper,
});
