22 lines
738 B
TypeScript
22 lines
738 B
TypeScript
import { PolicyTable, ReloadButton, Validation } from './Components';
|
||
import { columns } from './lib/config';
|
||
import type { StoreSelector } from './types';
|
||
import { clone } from 'tools';
|
||
import { Flex } from 'ui/grid';
|
||
|
||
const storeSelector: StoreSelector = ({ kasko }) => kasko;
|
||
|
||
function handleOnClick() {}
|
||
|
||
export function Kasko() {
|
||
const kaskoColumns = clone(columns);
|
||
kaskoColumns[0].title = 'Страховая компания КАСКО';
|
||
kaskoColumns[3].title = <ReloadButton storeSelector={storeSelector} onClick={handleOnClick} />;
|
||
return (
|
||
<Flex flexDirection="column">
|
||
<Validation storeSelector={storeSelector} />
|
||
<PolicyTable storeSelector={storeSelector} columns={kaskoColumns} />
|
||
</Flex>
|
||
);
|
||
}
|