import { computed } from 'vue'

export const useDarkProps = {
  dark: {
    type: Boolean,
    default: null
  }
}

export default function useDark(props, $q) {
  // return isDark
  return computed(() => (props.dark === null ? $q.dark.isActive : props.dark))
}
