"use client"; // A hosted room card's favorite star and rating buttons. import { Star } from "lucide-react"; import { ActionForm, SubmitButton } from "@/components/forms"; import { cn } from "@/lib/utils"; import { rateRoom, setFavorite } from "./actions"; export function RoomActions({ n, favorite, canRate }: { n: number; favorite: boolean; canRate: boolean }) { return (
{canRate && ( Rate {[1, 2, 3, 4, 5].map((k) => ( {k} ))} )}
); }