import 'package:nostr_sdk/utils/platform_util.dart';

import '../const/base_consts.dart';
import '../main.dart';

class TableModeUtil {
  static bool isTableMode() {
    if (settingProvider.tableMode == OpenStatus.OPEN) {
      return true;
    } else if (settingProvider.tableMode == OpenStatus.CLOSE) {
      return false;
    }
    return PlatformUtil.isTableModeWithoutSetting();
  }
}
