2019-09-09 09:08:54 +00:00
|
|
|
import * as React from "react";
|
|
|
|
|
import { ComponentProps } from "./BaseComponent";
|
|
|
|
|
import { Boundary, Breadcrumbs, IBreadcrumbProps } from "@blueprintjs/core";
|
|
|
|
|
import { Container } from "./ContainerComponent";
|
2019-03-21 12:10:32 +00:00
|
|
|
|
2019-08-29 11:22:09 +00:00
|
|
|
class BreadcrumbsComponent extends React.Component<BreadcrumbsComponentProps> {
|
2019-03-21 12:10:32 +00:00
|
|
|
render() {
|
|
|
|
|
return (
|
|
|
|
|
<Container {...this.props}>
|
|
|
|
|
<Breadcrumbs
|
|
|
|
|
collapseFrom={this.props.collapseFrom}
|
|
|
|
|
items={this.props.items}
|
|
|
|
|
minVisibleItems={this.props.minVisibleItems}
|
|
|
|
|
className={this.props.className}
|
|
|
|
|
/>
|
|
|
|
|
</Container>
|
2019-09-09 09:08:54 +00:00
|
|
|
);
|
2019-03-21 12:10:32 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-09-05 17:47:50 +00:00
|
|
|
export interface BreadcrumbsComponentProps extends ComponentProps {
|
2019-08-29 11:22:09 +00:00
|
|
|
width?: number;
|
|
|
|
|
collapseFrom?: Boundary;
|
|
|
|
|
className?: string;
|
|
|
|
|
minVisibleItems?: number;
|
|
|
|
|
items?: IBreadcrumbProps[];
|
2019-03-21 12:10:32 +00:00
|
|
|
}
|
|
|
|
|
|
2019-09-09 09:08:54 +00:00
|
|
|
export default BreadcrumbsComponent;
|