import * as React from 'react';
import Page, { Grid, GridColumn } from '@atlaskit/page';
import Button from '@uidu/button';
import {
BlockCardResolvingView,
BlockCardErroredView,
BlockCardUnauthorisedView,
BlockCardForbiddenView,
BlockCardResolvedView,
} from '../src/BlockCard';
const url = 'https://www.dropbox.com/';
const icon =
'https://aem.dropbox.com/cms/content/dam/dropbox/www/en-us/branding/app-dropbox-windows@2x.png';
const log = (name: string) => () => console.log(name);
const onClick = log('Open');
class Example extends React.Component {
state = {
isSelected: false,
};
handleSelectedClick = () => {
this.setState({
isSelected: !this.state.isSelected,
});
};
render() {
return (
Loading
Errored
Unauthorised
Forbidden
Resolved
success('Success!'),
},
{
id: 'failure',
text: 'Failure',
handler: ({ failure }) => failure(),
},
{
id: 'pending',
text: 'Pending',
handler: ({ pending }) => pending(),
},
]}
/>
);
}
}
export default () => ;