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-10-07 09:41:58 -07:00

14 lines
365 B
JavaScript

import * as React from 'react';
import { Select } from '@chakra-ui/core';
export 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>
);