WorkbenchFrame
The fixed workbench frame: product, tabs, the open request, and sign-out.
The open search sits here.
Example
<WorkbenchFrame
tab={tab}
onTab={setTab}
title="ICU nurses in Texas"
account="ada@example.com"
onSignOut={signOut}
onNewSearch={start}
>
{children}
</WorkbenchFrame>
Props
| Prop | Type | |
|---|---|---|
tab | 'search' | 'history' | |
onTab | (tab) => void | |
leading | ReactNode | Sits after the mark. The product name goes here. |
title | string | The open request. |
titleHint | string | |
showCopy | boolean | |
copied | boolean | |
onCopy | () => void | |
copyIcon | ReactNode | |
copiedIcon | ReactNode | |
env | string | |
account | string | |
onSignOut | () => void | Opens the sign-out dialog, then calls this. |
signOutIcon | ReactNode | |
onNewSearch | () => void | |
newSearchIcon | ReactNode | |
children | ReactNode |
Render it inside SourcingTheme so the Nova tokens apply.