import i18n from 'ui-i18n';
import { useSnackbar } from '../useSnackbar';
export var useLayoutResetter = function (_a) {
    var onLayoutReset = _a.onLayoutReset, onResetUndo = _a.onResetUndo;
    var resetLayout = function () {
        onLayoutReset();
        showSnackbarMessage(i18n.text("The default layout is now restored. It's still not too late to revert your changes. Click Undo to go back to your personalized settings."));
    };
    var _b = useSnackbar({
        onDismissClick: onResetUndo,
        showDismiss: true,
        autoHideDuration: 5000,
        dismissTitle: i18n.text('Undo')
    }), SnackbarRenderer = _b.SnackbarRenderer, showSnackbarMessage = _b.showSnackbarMessage;
    return { SnackbarRenderer: SnackbarRenderer, resetLayout: resetLayout };
};
