Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

274 B
Raw Blame
import { useEffect } from 'react';

/**
 * Set the document title in the "{title} - AliasVault" form.
 * @param title - the page title
 */
export function usePageTitle(title: string): void {
  useEffect(() => {
    document.title = `${title} - AliasVault`;
  }, [title]);
}