feat: filters work together

This commit is contained in:
Simon Emanuelsson
2025-04-14 08:37:11 +02:00
committed by Michael Zetterberg
parent 31370fe711
commit d72c84d949
14 changed files with 45 additions and 53 deletions

View File

@@ -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"
}