chore: Add homepage link to theme card
This commit is contained in:
@@ -5,6 +5,7 @@ export interface ZenTheme {
|
||||
image: string
|
||||
downloadUrl: string
|
||||
id: string
|
||||
homepage?: string
|
||||
}
|
||||
|
||||
export function getAllThemes(): ZenTheme[] {
|
||||
@@ -23,3 +24,7 @@ export function getAllThemes(): ZenTheme[] {
|
||||
export function getThemesFromSearch(themes: ZenTheme[], query: string): ZenTheme[] {
|
||||
return themes.filter((theme) => theme.name.toLowerCase().includes(query.toLowerCase()));
|
||||
}
|
||||
|
||||
export function getThemeFromId(id: string): ZenTheme | undefined {
|
||||
return getAllThemes().find((theme) => theme.id === id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user