module IHP.AutoRefresh.View where import IHP.Prelude import IHP.AutoRefresh.Types import IHP.HSX.QQ (hsx) import qualified Text.Blaze.Html5 as Html5 import IHP.Controller.Context autoRefreshMeta :: (?context :: ControllerContext) => Html5.Html autoRefreshMeta = case fromFrozenContext @AutoRefreshState of AutoRefreshDisabled -> mempty AutoRefreshEnabled { sessionId } -> [hsx||]