import { DotsHorizontalIcon } from "@heroicons/react/solid"; import React, { FC } from "react"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import Button from "@calcom/ui/Button"; import Dropdown, { DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem } from "@calcom/ui/Dropdown"; import { SVGComponent } from "@lib/types/SVGComponent"; export type ActionType = { id: string; icon: SVGComponent; label: string; disabled?: boolean; color?: "primary" | "secondary"; } & ({ href?: never; onClick: () => any } | { href: string; onClick?: never }); interface Props { actions: ActionType[]; } const TableActions: FC = ({ actions }) => { const { t } = useLocale(); return ( <>
{actions.map((action) => ( ))}
{actions.map((action) => ( ))}
); }; export default TableActions;