|
1
|
import { RouteFocusModal } from "../../../components/modals" |
|
2
|
import { usePriceListCurrencyData } from "../common/hooks/use-price-list-currency-data" |
|
3
|
import { PriceListCreateForm } from "./components/price-list-create-form" |
|
4
|
|
|
5
|
export const PriceListCreate = () => { |
|
6
|
const { isReady, regions, currencies, pricePreferences } = |
|
7
|
usePriceListCurrencyData() |
|
8
|
|
|
9
|
return ( |
|
10
|
<RouteFocusModal> |
|
11
|
{isReady && ( |
|
12
|
<PriceListCreateForm |
|
13
|
regions={regions} |
|
14
|
currencies={currencies} |
|
15
|
pricePreferences={pricePreferences} |
|
16
|
/> |
|
17
|
)} |
|
18
|
</RouteFocusModal> |
|
19
|
) |
|
20
|
} |