mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
20 lines
659 B
React
20 lines
659 B
React
|
|
import React from 'react';
|
||
|
|
import { Accordion, Icon } from 'semantic-ui-react';
|
||
|
|
|
||
|
|
export default function Help({ readme }) {
|
||
|
|
const [active, setActive] = React.useState(false);
|
||
|
|
|
||
|
|
return (
|
||
|
|
<Accordion>
|
||
|
|
<Accordion.Title active={active} index={0} onClick={() => setActive(!active)}>
|
||
|
|
<React.Fragment>
|
||
|
|
<Icon name="dropdown" /> <span className="providerMutator__helpLink"> More information</span>
|
||
|
|
</React.Fragment>
|
||
|
|
</Accordion.Title>
|
||
|
|
<Accordion.Content active={active} className="providerMutator__helpBox">
|
||
|
|
<p dangerouslySetInnerHTML={{ __html: readme }} />
|
||
|
|
</Accordion.Content>
|
||
|
|
</Accordion>
|
||
|
|
);
|
||
|
|
}
|