feat(SW-880): refactor facility component

This commit is contained in:
Fredrik Thorsson
2024-11-18 11:23:34 +01:00
parent b5704dee21
commit ce965fd130
6 changed files with 72 additions and 83 deletions
@@ -0,0 +1,5 @@
import type { Hotel } from "@/types/hotel"
export type FacilityProps = {
data: Hotel["healthFacilities"][number]
}
@@ -1,19 +0,0 @@
export type FacilityCardProps = {
imgUrl: string
imgAltText: string
facilityType: string
ordinaryOpeningTimes: {
alwaysOpen: boolean
isClosed: boolean
openingTime?: string
closingTime?: string
sortOrder?: number
}
weekendOpeningTimes: {
alwaysOpen: boolean
isClosed: boolean
openingTime?: string
closingTime?: string
sortOrder?: number
}
}