// import "./DAGCircle.css"; import { Point } from "types/graphs"; import { AddIcon, PencilIcon, TrashIcon } from '../Icons/index'; import { useCircleStyles } from './styles'; export interface AddProps { onEdit?: () => void; onAdd?: () => void; onRemove?: () => void; loc: Point, size: number, backgroundColor?: string; } export const DAGCircle = ({ loc: [x, y], size, onEdit, onAdd, onRemove, backgroundColor, }: AddProps) => { const { classes } = useCircleStyles({ size: size * 0.9, hasOnFunction: !!onEdit || !!onAdd, hasRemoveFunction: !!onRemove, backgroundColor, }); return <>
{ onEdit ? : onAdd ? : backgroundColor ? "" : "else" } {onRemove ? : <>}
}