import * as React from 'react';
import Page, { Grid, GridColumn } from '@atlaskit/page';
import Button from '@uidu/button';
import {
InlineCardResolvedView,
InlineCardResolvingView,
InlineCardErroredView,
InlineCardForbiddenView,
InlineCardUnauthorizedView,
} from '../src/InlineCard';
interface Lozenge {
text: string;
appearance: 'inprogress';
}
const url = 'https://product-fabric.atlassian.net/browse/MSW-524';
const icon =
'https://product-fabric.atlassian.net/images/icons/issuetypes/story.svg';
const title = 'MSW-524: [RFC] Api for inline Link cards UI component';
const lozenge: Lozenge = {
text: 'in progress',
appearance: 'inprogress',
};
const onClick = () => window.open(url);
class Example extends React.Component {
state = {
isSelected: false,
};
handleSelectedClick = () => {
this.setState({
isSelected: !this.state.isSelected,
});
};
render() {
return (
Unauthorised view
Labore sunt adipisicing esse magna.
{}}
onAuthorise={() => {
alert('Does nothing...');
}}
url={url}
/>
ResolvingView
Labore sunt adipisicing esse magna.
Labore sunt adipisicing esse magna.
No Permissions View
Labore sunt adipisicing esse magna.
{
alert("Clicking me won't fix the permissions...");
}}
onAuthorise={() => {
alert('Okay, what else have we got...');
}}
/>
Errored View
Labore sunt adipisicing esse magna.
{}}
onRetry={() => {
alert('Trying really hard!');
}}
/>
Labore sunt adipisicing esse magna.
Resolved view
Labore sunt adipisicing esse magna.
);
}
}
export default () => ;