Files
lens/src/renderer/components/dock/logs/get-logs-without-timestamps.injectable.ts
T
2022-03-03 14:40:53 +01:00

20 lines
581 B
TypeScript

/**
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import { getInjectable } from "@ogre-tools/injectable";
import logStoreInjectable from "./store.injectable";
const getLogsWithoutTimestampsInjectable = getInjectable({
id: "get-logs-without-timestamps",
instantiate: (di) => {
const logStore = di.inject(logStoreInjectable);
return (tabId: string): string[] =>
logStore.getLogsWithoutTimestamps(tabId);
},
});
export default getLogsWithoutTimestampsInjectable;