'use client'; import { useAgency } from './client'; /** Строка на бирке подарка: код из ссылки агентства (?a=) или подсказка, где его взять */ export function GiftCode({ withCode, withoutCode }: { withCode: string; withoutCode: string }) { const agency = useAgency(); return {agency ? withCode.replace('{{code}}', agency) : withoutCode}; }