import { useTranslation } from "react-i18next" import { CalendarIcon } from "lucide-react" import { format } from "date-fns" import { Button } from "@/components/ui/button" import { Textarea } from "@/components/ui/textarea" import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover" import { Calendar } from "@/components/ui/calendar" import { StarRating } from "@/components/star-rating" import { WatchMediumPicker } from "@/components/watch-medium-picker" type ReviewFormFieldsProps = { rating: number onRatingChange: (v: number) => void comment: string onCommentChange: (v: string) => void watchedAt: Date onWatchedAtChange: (v: Date) => void watchMedium?: string onWatchMediumChange: (v: string | undefined) => void } export function ReviewFormFields({ rating, onRatingChange, comment, onCommentChange, watchedAt, onWatchedAtChange, watchMedium, onWatchMediumChange, }: ReviewFormFieldsProps) { const { t } = useTranslation() return ( <>
{t("logReview.yourRating")}