* feat: setup localisation with lingui * Fix hydration and locale issues * Add missing translations and tweak selector styling * Extend language support * Update lang support * Extend lang support * Fix build and add dyanmic imports
24 lines
612 B
TypeScript
24 lines
612 B
TypeScript
import { t } from "@lingui/core/macro";
|
|
import { HiEllipsisHorizontal, HiOutlineTrash } from "react-icons/hi2";
|
|
|
|
import Dropdown from "~/components/Dropdown";
|
|
import { useModal } from "~/providers/modal";
|
|
|
|
export default function BoardDropdown() {
|
|
const { openModal } = useModal();
|
|
|
|
return (
|
|
<Dropdown
|
|
items={[
|
|
{
|
|
label: t`Delete card`,
|
|
action: () => openModal("DELETE_CARD"),
|
|
icon: <HiOutlineTrash className="h-[16px] w-[16px] text-dark-900" />,
|
|
},
|
|
]}
|
|
>
|
|
<HiEllipsisHorizontal className="h-6 w-6 text-dark-900" />
|
|
</Dropdown>
|
|
);
|
|
}
|