mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-07 00:45:08 +01:00
8 lines
No EOL
250 B
TypeScript
8 lines
No EOL
250 B
TypeScript
import React from "react";
|
|
import {useStream} from "ui/effects";
|
|
|
|
export function CurrentWorkbenchIcon() {
|
|
const currentWorkbench = useStream(ctx => ctx.workbenchService.currentWorkbench$);
|
|
const Icon = currentWorkbench.icon;
|
|
return <Icon />;
|
|
} |