import { cn } from "@/utils/cn"; import Curve from "@/components/shared/icons/curve"; interface CurvyRectProps extends React.HTMLAttributes { allSides?: boolean; x?: boolean; y?: boolean; left?: boolean; right?: boolean; top?: boolean; bottom?: boolean; topLeft?: boolean; topRight?: boolean; bottomLeft?: boolean; bottomRight?: boolean; } export default function CurvyRect({ className, allSides, x, y, left, right, top, bottom, topLeft, topRight, bottomLeft, bottomRight, ...props }: CurvyRectProps) { const hasTopLeft = topLeft || top || left || x || allSides; const hasTopRight = topRight || top || right || x || allSides; const hasBottomLeft = bottomLeft || bottom || left || y || allSides; const hasBottomRight = bottomRight || bottom || right || y || allSides; return (
{hasTopLeft && } {hasTopRight && } {hasBottomLeft && ( )} {hasBottomRight && ( )}
); } export const Connector = ({ className, ...props }: React.SVGProps) => { return ( ); }; export const ConnectorToRight = ({ className, ...props }: React.SVGProps) => { return ( ); }; export const ConnectorToLeft = ({ className, ...props }: React.SVGProps) => { return ( ); }; export const ConnectorToTop = ({ className, ...props }: React.SVGProps) => { return ( ); }; export const ConnectorToBottom = ({ className, ...props }: React.SVGProps) => { return ( ); };