import { useMemo } from 'react';
import uuidv4 from 'uuid/v4';

export const useDialogId = () => {
    const dialogId = useMemo(() => uuidv4(), []);
    const dialogTitleId = `dialog-title-${dialogId}`;
    return {
        dialogId,
        dialogTitleId,
    };
};
