-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
600 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* eslint-disable react/require-default-props */ | ||
import React from 'react'; | ||
import { useIntl } from '@edx/frontend-platform/i18n'; | ||
import { | ||
Button, | ||
Tab, | ||
Tabs, | ||
Stack, | ||
} from '@openedx/paragon'; | ||
|
||
import { ComponentMenu } from '../components'; | ||
import messages from './messages'; | ||
|
||
interface ComponentInfoProps { | ||
usageKey: string; | ||
} | ||
|
||
const ComponentInfo = ({ usageKey } : ComponentInfoProps) => { | ||
const intl = useIntl(); | ||
|
||
return ( | ||
<Stack> | ||
<Stack direction="horizontal" className="d-flex justify-content-around"> | ||
<Button disabled variant="outline-primary rounded-0"> | ||
{intl.formatMessage(messages.editComponentButtonTitle)} | ||
</Button> | ||
<Button disabled variant="outline-primary rounded-0"> | ||
{intl.formatMessage(messages.publishComponentButtonTitle)} | ||
</Button> | ||
<ComponentMenu usageKey={usageKey} /> | ||
</Stack> | ||
<Tabs | ||
variant="tabs" | ||
className="my-3 d-flex justify-content-around" | ||
defaultActiveKey="preview" | ||
> | ||
<Tab eventKey="preview" title={intl.formatMessage(messages.previewTabTitle)}> | ||
Preview tab placeholder | ||
</Tab> | ||
<Tab eventKey="manage" title={intl.formatMessage(messages.manageTabTitle)}> | ||
Manage tab placeholder | ||
</Tab> | ||
<Tab eventKey="details" title={intl.formatMessage(messages.detailsTabTitle)}> | ||
Details tab placeholder | ||
</Tab> | ||
</Tabs> | ||
</Stack> | ||
); | ||
}; | ||
|
||
export default ComponentInfo; |
Oops, something went wrong.