import { useState } from 'react';
import { Card, CardContent } from '@/components/ui/card';
import { Input } from '@/components/ui/input';
import { Button } from '@/components/ui/button';
import { Textarea } from '@/components/ui/textarea';
import { Select, SelectItem } from '@/components/ui/select';
export default function AdminCRM() {
const [applicants, setApplicants] = useState([]);
const [form, setForm] = useState({
name: '',
email: '',
phone: '',
address: '',
position: 'RBT',
certified: 'No',
hours: '',
pay: '',
date: '',
source: '',
notes: '',
status: 'New'
});
const handleChange = (e) => {
const { name, value } = e.target;
setForm({ ...form, [name]: value });
};
const handleAddApplicant = () => {
setApplicants([...applicants, form]);
setForm({
name: '', email: '', phone: '', address: '', position: 'RBT', certified: 'No',
hours: '', pay: '', date: '', source: '', notes: '', status: 'New'
});
};
return (
))}
);
}
Add New Applicant
Applicant List
{applicants.map((app, index) => (Name: {app.name}
Email: {app.email}
Phone: {app.phone}
Address: {app.address}
Position: {app.position}
Certified RBT: {app.certified}
Hours: {app.hours}
Pay: {app.pay}
Date: {app.date}
Source: {app.source}
Notes: {app.notes}
Status: {app.status}