import { useState } from "react"; import { Card, CardContent } from "@/components/ui/card"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; export default function HomePage() { const [sections, setSections] = useState([ { title: "Welcome", content: "This is keepingkidssafe.info" }, { title: "Mission", content: "Our mission is to provide clear resources and guidance for child safety." }, ]); const [newTitle, setNewTitle] = useState(""); const [newContent, setNewContent] = useState(""); const addSection = () => { if (!newTitle || !newContent) return; setSections([...sections, { title: newTitle, content: newContent }]); setNewTitle(""); setNewContent(""); }; return (
{section.content}