function getCitationWithTitle(citation, i18n) {
    const { title } = citation;
    const normalizedTitle = (title ?? '').trim();
    return '' !== normalizedTitle ? citation : {
        ...citation,
        title: i18n.t('no-title')
    };
}
function hasClipboardSupport() {
    return !!navigator?.clipboard?.writeText;
}
export { getCitationWithTitle, hasClipboardSupport };
