import { FormButtons } from '@components/admin/FormButtons.js'; import Area from '@components/common/Area.js'; import { Form } from '@components/common/form/Form.js'; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@components/common/ui/Card.js'; import { _ } from '@evershop/evershop/lib/locale/translate/_'; import React from 'react'; interface CouponEditFormProps { action: string; gridUrl: string; } export default function CouponEditForm({ action, gridUrl }: CouponEditFormProps) { return (
{_('General Information')} {_('The general information about the coupon.')} {_('Discount Type')} {_('The type of discount applied by the coupon.')}
{_('Order conditions')} {_( 'The conditions related to the order for the coupon to be applied.' )}
{_('Customer conditions')} {_( 'The conditions related to the customer for the coupon to be applied.' )}
); } export const layout = { areaId: 'content', sortOrder: 10 }; export const query = ` query Query { action: url(routeId: "updateCoupon", params: [{key: "id", value: getContextValue("couponUuid")}]), gridUrl: url(routeId: "couponGrid") } `;