import { useId } from "react"; import dayjs from "@calcom/dayjs"; export const HorizontalLines = ({ hours, numberOfGridStopsPerCell, containerOffsetRef, }: { hours: dayjs.Dayjs[]; numberOfGridStopsPerCell: number; containerOffsetRef: React.RefObject; }) => { const finalHour = hours[hours.length - 1].add(1, "hour").format("h A"); const id = useId(); return (
{hours.map((hour) => ( <>
{hour.format("h A")}
))}
{finalHour}
); };