feat: filters work together
This commit is contained in:
committed by
Michael Zetterberg
parent
31370fe711
commit
d72c84d949
@@ -1,6 +1,6 @@
|
||||
import type { SymbolCodepoints } from "react-material-symbols"
|
||||
import type { MaterialSymbolProps } from "react-material-symbols"
|
||||
|
||||
export function getBedIconName(name: string): SymbolCodepoints {
|
||||
export function getBedIconName(name: string): MaterialSymbolProps["icon"] {
|
||||
const iconMappings = [
|
||||
{
|
||||
icon: "bed",
|
||||
@@ -25,5 +25,5 @@ export function getBedIconName(name: string): SymbolCodepoints {
|
||||
]
|
||||
|
||||
const icon = iconMappings.find((icon) => icon.texts.includes(name))
|
||||
return icon ? (icon.icon as SymbolCodepoints) : "single_bed"
|
||||
return icon ? (icon.icon as MaterialSymbolProps["icon"]) : "single_bed"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user