import { jsx as _jsx } from "react/jsx-runtime";
import { cn } from '../../../scalars/lib/utils.js';
const renderUrlCell = (value, context) => {
    const url = value?.toString() ?? '';
    return (_jsx("div", { className: cn({
            'text-right': context.column.align === 'right',
            'text-center': context.column.align === 'center',
            'text-left': context.column.align === 'left' || !context.column.align,
        }), children: url ? (_jsx("a", { href: url, target: "_blank", rel: "noopener noreferrer", className: "text-blue-600 hover:text-blue-800 underline", children: url })) : ('') }));
};
export { renderUrlCell };
//# sourceMappingURL=url-render.js.map