"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 (