import { ArticlePillar , ArticleSpecial , ArticleDisplay , ArticleDesign , ArticleFormat , } from '@guardian/libs' ; export const getAllThemes = ( format ) : Array < ArticleFormat > => { return [ { ... format , theme : ArticlePillar . News } , { ... format , theme : ArticlePillar . Sport } , { ... format , theme : ArticlePillar . Culture } , { ... format , theme : ArticlePillar . Lifestyle } , { ... format , theme : ArticlePillar . Opinion } , { ... format , theme : ArticleSpecial . SpecialReport } , { ... format , theme : ArticleSpecial . Labs } , ] ; } ; export const getThemeNameAsString = ( format ) : string => { return format . theme < 5 ? ArticlePillar [ format . theme ] : ArticleSpecial [ format . theme ] ; } ;