Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
10 lines
244 B
Plaintext
10 lines
244 B
Plaintext
import { ThemeGetter, ThemeObject } from './types'
|
|
|
|
export function fromTheme(key: string): ThemeGetter {
|
|
const themeGetter = (theme: ThemeObject) => theme[key] || []
|
|
|
|
themeGetter.isThemeGetter = true as const
|
|
|
|
return themeGetter
|
|
}
|