/**
 * Hooks feed pathnames
 *
 * - /hooks
 * - /hook/:id
 * - /@username/hooks
 * - /@username/hook/:id
 */
export function isVideoHooksPath(pathname: string) {
  switch (true) {
    case !!pathname.match(/^(\/@[^\/]+)?\/hook\/[^\/]+/):
    case !!pathname.match(/^(\/@[^\/]+)?\/hooks(\/.*)?$/):
      return true;
    default:
      return false;
  }
}
