import { useState } from 'react' import { useMutation } from '@tanstack/react-query' import { useToast } from 'sonner' import { Button } from '@/components/ui/Button' import { Input } from '@/components/ui/Input' import { Textarea } from '@/components/ui/Textarea' import { Select } from '@/components/ui/Select' import { api } from '@/lib/api' const Support = () => { const { toast } = useToast() const [formState, setFormState] = useState({ name: '', company: '', email: '', phone: '', issue: '', priority: 'medium', }) const mutation = useMutation({ mutationFn: (data) => api.post('/support', data), onSuccess: () => { toast.success('Thanks! We\'ll get back to you soon.') setFormState({ name: '', company: '', email: '', phone: '', issue: '', priority: 'medium', }) }, onError: (error) => { toast.error(error.message || 'Failed to submit form. Please try again.') }, }) const handleSubmit = (e) => { e.preventDefault() mutation.mutate(formState) } const handleChange = (e) => { const { name, value } = e.target setFormState(prev => ({ ...prev, [name]: value })) } return (
Need help with your communications or infrastructure? Submit a support request and we'll get back to you promptly.
We provide comprehensive support for all our services, including 24/7 monitoring, rapid response, and dedicated support engineers.
24/7 Monitoring with rapid response SLAs
Low: General inquiries (response within 24 hours)
Medium: Standard issues (response within 4 hours)
High: Critical issues (response within 1 hour)