Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | import { cn } from "@heroui/react" import { XIcon } from "lucide-react" import HeroTooltip from "@/components/common/HeroTooltip" const NewTaskButton: React.FC<{ onClick: () => void className?: string }> = ({ className, onClick }) => { return ( <HeroTooltip content="Close current task to start new one" delay={1000} placement="bottom"> <button aria-label="Start a New Task" className={cn( "flex items-center border-0 text-sm font-bold bg-transparent opacity-70 hover:opacity-100", className, "hover:bg-muted/10 px-0 cursor-pointer", )} onClick={(e) => { e.preventDefault() e.stopPropagation() onClick() }} type="button"> <XIcon size="14" /> </button> </HeroTooltip> ) } export default NewTaskButton |