side by side txte exemple

This commit is contained in:
nBiqoz
2025-07-29 10:41:21 +02:00
parent bc07ea6077
commit 85288890cc
3 changed files with 153 additions and 57 deletions

View File

@@ -25,6 +25,7 @@ export default function Home() {
const [error, setError] = useState<string | null>(null);
const [isLoadingFile, setIsLoadingFile] = useState(false);
const [entityMappings, setEntityMappings] = useState<EntityMapping[]>([]);
const [isExampleLoaded, setIsExampleLoaded] = useState(false); // NOUVEAU
const progressSteps = ["Téléversement", "Prévisualisation", "Anonymisation"];
@@ -43,6 +44,7 @@ export default function Home() {
setError(null);
setIsLoadingFile(false);
setEntityMappings([]);
setIsExampleLoaded(false); // NOUVEAU
};
// Hooks personnalisés pour la logique métier
@@ -105,6 +107,8 @@ export default function Home() {
outputText={outputText}
copyToClipboard={copyToClipboard}
downloadText={downloadText}
isExampleLoaded={isExampleLoaded} // NOUVEAU
setIsExampleLoaded={setIsExampleLoaded} // NOUVEAU
/>
</div>
</div>