'use client'; import React, { useState } from 'react'; import { updateAppTitle } from '@/app/actions/admin'; import { Type } from 'lucide-react'; interface EditTitleFormProps { currentTitle: string; } export function EditTitleForm({ currentTitle }: EditTitleFormProps) { const [loading, setLoading] = useState(false); const handleSubmit = async (e: React.FormEvent) => { e.preventDefault(); setLoading(true); const formData = new FormData(e.currentTarget); try { await updateAppTitle(formData); } finally { setLoading(false); } }; return (

TITRE DE L'APPLICATION

); }