mirror of
https://github.com/khoaliber/dockhand.git
synced 2026-03-06 05:39:05 +00:00
10 lines
260 B
TypeScript
10 lines
260 B
TypeScript
import type { PageServerLoad } from './$types';
|
|
import { getScannerSettings } from '$lib/server/scanner';
|
|
|
|
export const load: PageServerLoad = async () => {
|
|
const { scanner } = await getScannerSettings();
|
|
return {
|
|
scannerEnabled: scanner !== 'none'
|
|
};
|
|
};
|