module Playbook::ApplicationHelper
def current_webpacker_instance
def current_webpacker_instance Playbook.webpacker end
def dark_mode?
def dark_mode? cookies[:dark_mode].eql? "true" end
def dark_mode_props(props)
def dark_mode_props(props) (props || {}).merge(dark: dark_mode?) end
def pb_rails(kit, props: {}, &block)
def pb_rails(kit, props: {}, &block) super kit, props: dark_mode_props(props), &block end
def pb_react(kit, props: {}, options: {})
def pb_react(kit, props: {}, options: {}) react_component kit.camelize, dark_mode_props(props), options end