| 123456789101112131415 |
- # app/components/UI/ThemeToggle/index.coffee
- module.exports =
- name: 'theme-toggle'
- props:
- theme:
- type: String
- default: 'light'
- methods:
- toggle: ->
- @$emit 'theme-changed', if @theme == 'light' then 'dark' else 'light'
- render: (new Function '_ctx', '_cache', globalThis.renderFns['app/components/UI/ThemeToggle/index.pug'])()
|