import { T } from 'Components' import { usePersistingState } from 'Components/utils/persistState' import React from 'react' import emoji from 'react-easy-emoji' type SimulateurWarningProps = { simulateur: string } export default function SimulateurWarning({ simulateur }: SimulateurWarningProps) { let [folded, fold] = usePersistingState( 'app::simulateurs:warning-folded:v1:' + simulateur, false ) return (

{emoji('🚩 ')} Avant de commencer... {' '} {folded && ( )}

{!folded && (
)}
) }