|
|
|
@ -49,42 +49,53 @@ export default function AIStatus(props: AIStatusProps) { |
|
|
|
|
{copilotActive === false ? 'RemixAI Copilot (disabled)' : 'RemixAI Copilot (enabled)'} |
|
|
|
|
</span> |
|
|
|
|
</CustomTooltip> |
|
|
|
|
<CustomTooltip |
|
|
|
|
tooltipText={"Ask RemixAI for help!"} |
|
|
|
|
> |
|
|
|
|
<div className="d-flex text-sm flex-row pr-2 text-white justify-content-center align-items-center"> |
|
|
|
|
<style>{` |
|
|
|
|
button.fa-robot:focus { |
|
|
|
|
outline: none; |
|
|
|
|
box-shadow: none; |
|
|
|
|
} |
|
|
|
|
button.fa-robot:hover { |
|
|
|
|
border-color: var(--info) |
|
|
|
|
} |
|
|
|
|
`}</style>
|
|
|
|
|
<button |
|
|
|
|
style={{ |
|
|
|
|
position: 'absolute', |
|
|
|
|
bottom: '0.7rem', |
|
|
|
|
right: '0.1rem', |
|
|
|
|
height: '3rem', |
|
|
|
|
width: '3rem', |
|
|
|
|
borderRadius: '50%', |
|
|
|
|
color: 'var(--ai)', |
|
|
|
|
boxShadow: "0 1px 7px var(--secondary)" |
|
|
|
|
}} |
|
|
|
|
data-id="aiStatusButton" |
|
|
|
|
className='h3 p-1 alert alert-info fal fa-robot' |
|
|
|
|
onClick={async () => { |
|
|
|
|
appContext.appStateDispatch({ |
|
|
|
|
type: appActionTypes.setShowPopupPanel, |
|
|
|
|
payload: !appContext.appState.showPopupPanel |
|
|
|
|
}) |
|
|
|
|
}} |
|
|
|
|
> |
|
|
|
|
</button> |
|
|
|
|
</div> |
|
|
|
|
</CustomTooltip> |
|
|
|
|
<div className="d-flex text-sm flex-row pr-2 text-white justify-content-center align-items-center"> |
|
|
|
|
<style>{` |
|
|
|
|
button.aiButton:focus { |
|
|
|
|
outline: none; |
|
|
|
|
box-shadow: none; |
|
|
|
|
} |
|
|
|
|
button.aiButton:hover { |
|
|
|
|
border-color: var(--info) |
|
|
|
|
} |
|
|
|
|
`}</style>
|
|
|
|
|
{ !appContext.appState.showPopupPanel && <div className='d-flex flex-column' style={{ |
|
|
|
|
position: 'absolute', |
|
|
|
|
bottom: '1.5rem', |
|
|
|
|
right: '1.5rem', |
|
|
|
|
color: 'var(--ai)', |
|
|
|
|
alignItems: 'self-end', |
|
|
|
|
}}> |
|
|
|
|
<span className='p-1 bg-info mr-4' style={{ |
|
|
|
|
boxShadow: "0 1px 7px var(--secondary)", |
|
|
|
|
zIndex: '200', |
|
|
|
|
marginBottom: '-7px' |
|
|
|
|
}}> |
|
|
|
|
👋 I'm here to help you! |
|
|
|
|
</span> |
|
|
|
|
<button |
|
|
|
|
style={{ |
|
|
|
|
backgroundColor: 'var(--brand-dark-blue)', |
|
|
|
|
height: '3rem', |
|
|
|
|
width: '3rem', |
|
|
|
|
borderRadius: '50%', |
|
|
|
|
color: 'var(--ai)', |
|
|
|
|
boxShadow: "0 1px 7px var(--secondary)" |
|
|
|
|
}} |
|
|
|
|
data-id="aiStatusButton" |
|
|
|
|
className='aiButton d-flex align-items-center h3 p-1' |
|
|
|
|
onClick={async () => { |
|
|
|
|
appContext.appStateDispatch({ |
|
|
|
|
type: appActionTypes.setShowPopupPanel, |
|
|
|
|
payload: !appContext.appState.showPopupPanel |
|
|
|
|
}) |
|
|
|
|
}} |
|
|
|
|
> |
|
|
|
|
<img className="align-self-start" src="assets/img/aiLogoHead.webp" alt="" style={{height: "2rem"}}></img> |
|
|
|
|
</button> |
|
|
|
|
</div> |
|
|
|
|
} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
) |
|
|
|
|
} |