"use client"; import { Dropdown, DropdownItem } from "flowbite-react"; import { numberDeclension } from "#/api/utils"; import { useUserPlayerPreferencesStore } from "#/store/player"; interface Voiceover { id: number; name: string; icon: string; episodes_count: number; view_count: number; pinned: boolean; } const DropdownTrigger = ({ icon, name, pinned }: Voiceover) => { return (
{name}
{pinned && ( )}{name}
{pinned && ( )}{episodes_count}{" "} {numberDeclension(episodes_count, "серия", "серии", "серий")}
{view_count}{" "} {numberDeclension(view_count, "просмотр", "просмотра", "просмотров")}