// Copyright 2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import React, { useEffect } from 'react'; import type { LocalizerType } from '../types/Util'; export type PropsType = { deleteAllData: () => void; i18n: LocalizerType; }; export function ClearingData({ deleteAllData, i18n }: PropsType): JSX.Element { useEffect(() => { deleteAllData(); }, [deleteAllData]); return (