ReactTooltip.purs 512 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
module Gargantext.Utils.ReactTooltip where

import Data.Maybe (maybe)
import Data.Nullable (Nullable, toMaybe)
import DOM.Simple as DOM
import Effect (Effect)
import Effect.Uncurried (EffectFn2, runEffectFn2)
import Reactix as R

import Gargantext.Prelude

type Props =
  (
14 15 16
      effect :: String
    , id     :: String
    , type   :: String
17 18 19 20 21 22
  )

foreign import reactTooltipCpt :: R.Component Props

reactTooltip :: Record Props -> Array R.Element -> R.Element
reactTooltip = R.rawCreateElement reactTooltipCpt