jsketcher/web/app/cad/workbench/CurrentWorkbenchIcon.tsx
2022-07-01 23:24:25 -07:00

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 />;
}