mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-30 23:04:30 +08:00
25 lines
580 B
TypeScript
25 lines
580 B
TypeScript
/*
|
|
* CloudBeaver - Cloud Database Manager
|
|
* Copyright (C) 2020-2023 DBeaver Corp and others
|
|
*
|
|
* Licensed under the Apache License, Version 2.0.
|
|
* you may not use this file except in compliance with the License.
|
|
*/
|
|
|
|
import type { ThemeSelector } from '@cloudbeaver/core-theming';
|
|
|
|
export const SqlEditorStyles: ThemeSelector = async theme => {
|
|
let styles: any;
|
|
|
|
switch (theme) {
|
|
case 'dark':
|
|
styles = await import('./dark.module.scss');
|
|
break;
|
|
default:
|
|
styles = await import('./light.module.scss');
|
|
break;
|
|
}
|
|
|
|
return styles.default;
|
|
};
|