1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00
Files
checktheroads-hyperglass/hyperglass/ui/components/Table/TableSelectShow.js
2020-07-05 17:20:10 -07:00

16 lines
391 B
JavaScript

import * as React from "react";
import { Select } from "@chakra-ui/core";
const TableSelectShow = ({ value, onChange, children, ...props }) => (
<Select size="sm" onChange={onChange} {...props}>
{[5, 10, 20, 30, 40, 50].map(value => (
<option key={value} value={value}>
Show {value}
</option>
))}
{children}
</Select>
);
export default TableSelectShow;