import React from "react"; import MenuButton from "@/components/ui/menu-button"; import { Button, GetProps } from "tamagui"; import Icons from "@/components/ui/icons"; type Props = GetProps & { onSelect?: (() => void) | null; onEdit?: (() => void) | null; }; const HostActions = ({ onSelect, onEdit, ...props }: Props) => { if (!onSelect && !onEdit) { return null; } return ( } {...props} /> } > {onSelect != null && ( } > Select )} {onEdit != null && ( } > Edit )} ); }; export default HostActions;