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/pageSelect.tsx

16 lines
414 B
TypeScript
Raw Normal View History

2021-01-01 11:32:35 -07:00
import { Select } from '@chakra-ui/react';
import { SelectProps } from '@chakra-ui/react';
2021-01-03 23:51:09 -07:00
export const TableSelectShow: React.FC<SelectProps> = (props: SelectProps) => {
2021-01-01 11:32:35 -07:00
const { value, ...rest } = props;
return (
<Select size="sm" {...rest}>
{[5, 10, 20, 30, 40, 50].map(value => (
<option key={value} value={value}>
Show {value}
</option>
))}
</Select>
);
};