次の方法で共有


themeHandler type

This function is passed to registerOnThemeHandler. It is called every time the user changes their theme.

type themeHandler = (theme: string) => void