film-exif/src/components/Bootstrap/Bootstrap.js

63 lines
2.2 KiB
JavaScript
Raw Normal View History

2018-04-04 19:26:34 -04:00
import BSAlert from 'inferno-bootstrap/dist/Alert';
import Badge from 'inferno-bootstrap/dist/Badge';
import Breadcrumb from 'inferno-bootstrap/dist/Breadcrumb';
import BreadcrumbItem from 'inferno-bootstrap/dist/BreadcrumbItem';
import ButtonDropdown from 'inferno-bootstrap/dist/ButtonDropdown';
import ButtonGroup from 'inferno-bootstrap/dist/ButtonGroup';
import ButtonToolbar from 'inferno-bootstrap/dist/ButtonToolbar';
import Collapse from 'inferno-bootstrap/dist/Collapse';
import Dropdown from 'inferno-bootstrap/dist/Dropdown';
import DropdownItem from 'inferno-bootstrap/dist/DropdownItem';
import DropdownMenu from 'inferno-bootstrap/dist/DropdownMenu';
import DropdownToggle from 'inferno-bootstrap/dist/DropdownToggle';
2018-04-04 09:32:18 -04:00
import BSJumbotron from 'inferno-bootstrap/dist/Jumbotron';
import Pagination from 'inferno-bootstrap/dist/Pagination';
import PaginationItem from 'inferno-bootstrap/dist/PaginationItem';
import PaginationLink from 'inferno-bootstrap/dist/PaginationLink';
import Popover from 'inferno-bootstrap/dist/Popover';
import PopoverBody from 'inferno-bootstrap/dist/PopoverBody';
import PopoverHeader from 'inferno-bootstrap/dist/PopoverHeader';
import PopperContent from 'inferno-bootstrap/dist/PopperContent';
import PopperTargetHelper from 'inferno-bootstrap/dist/PopperTargetHelper';
import Progress from 'inferno-bootstrap/dist/Progress';
import TabContent from 'inferno-bootstrap/dist/TabContent';
import TabPane from 'inferno-bootstrap/dist/TabPane';
import Table from 'inferno-bootstrap/dist/Table';
import Tooltip from 'inferno-bootstrap/dist/Tooltip';
2018-03-30 22:17:58 -04:00
2018-04-04 09:32:18 -04:00
export const BSWrapper = (Component, tagName) => {
return ({children, ...props}) => (
<Component tag={tagName} {...props}>{children}</Component>
2018-04-04 21:28:47 -04:00
);
};
2018-04-04 09:32:18 -04:00
2018-04-04 19:26:34 -04:00
export const Alert = BSWrapper(BSAlert, 'bs-alert');
2018-04-04 09:32:18 -04:00
export const Jumbotron = BSWrapper(BSJumbotron, 'bs-jumbotron');
2018-03-30 22:17:58 -04:00
export {
Badge,
Breadcrumb,
BreadcrumbItem,
ButtonDropdown,
ButtonGroup,
ButtonToolbar,
Collapse,
Dropdown,
DropdownItem,
DropdownMenu,
DropdownToggle,
Pagination,
PaginationItem,
PaginationLink,
Popover,
PopoverBody,
PopoverHeader,
PopperContent,
PopperTargetHelper,
Progress,
TabContent,
TabPane,
Table,
Tooltip,
2018-03-30 23:05:59 -04:00
};