TrisL's picture
import React, { useState, useCallback, useRef, useEffect } from 'react';
c9ae51a verified
Raw
History Blame Contribute Delete
567 Bytes
// Main application logic will go here
document.addEventListener('DOMContentLoaded', () => {
// Initialize the app
console.log('Phoenix Flow Builder initialized');
// Dark mode by default
document.documentElement.classList.add('dark');
});
// Constants for initial nodes and edges
const INITIAL_NODES = [];
const INITIAL_EDGES = [];
// Custom node types
const NodeType = {
ACTION: 'action',
TRIGGER: 'trigger',
CONDITION: 'condition',
};
// Export them for use in components
window.FlowConstants = {
INITIAL_NODES,
INITIAL_EDGES,
NodeType
};