export const FocusDirective = {
  beforeMount(el: HTMLElement, binding: any) {
    if (
      Object.prototype.hasOwnProperty.call(binding, "value") &&
      binding.value
    ) {
      if (window.innerWidth > 1280) {
        setTimeout(() => {
          el.focus();
        });
      }
    }
  }
};
