= ({ appBridge }) => {
{isQuotationMarkType && (
= ({ appBridge }) => {
{isQuotationMarkType && (
= ({
- customIconId,
+ customIcon,
quoteStyle,
color,
isCustomSize,
sizeValue,
sizeChoice,
- appBridge,
}) => {
const size = isCustomSize ? (sizeValue ?? '') : quoteSizeMap[sizeChoice ?? QuoteSize.LargeSize];
- return quoteIconMap(size, color, customIconId, appBridge)[quoteStyle];
+ return quoteIconMap(size, color, customIcon)[quoteStyle];
};
diff --git a/packages/quote-block/src/types.ts b/packages/quote-block/src/types.ts
index f214a44af..f068a9961 100644
--- a/packages/quote-block/src/types.ts
+++ b/packages/quote-block/src/types.ts
@@ -1,6 +1,6 @@
/* (c) Copyright Frontify Ltd., all rights reserved. */
-import { type AppBridgeBlock } from '@frontify/app-bridge';
+import { type Asset } from '@frontify/app-bridge';
import { type Color } from '@frontify/fondue';
import { type CSSProperties } from 'react';
@@ -82,6 +82,5 @@ export enum QuotationMarksAnchoring {
export type CustomIconProps = {
style: CSSProperties;
- customIconId: string;
- appBridge: AppBridgeBlock;
+ customIcon: Asset | undefined;
};
diff --git a/packages/quote-block/src/utilities.tsx b/packages/quote-block/src/utilities.tsx
index 0ebbe0b29..6775cf774 100644
--- a/packages/quote-block/src/utilities.tsx
+++ b/packages/quote-block/src/utilities.tsx
@@ -13,15 +13,14 @@ import { IconSingleQuoteDown } from './foundation/IconSingleQuoteDown';
import { IconSingleQuoteUp } from './foundation/IconSingleQuoteUp';
import { type QuoteStyle } from './types';
import { CustomIcon } from './CustomIcon';
-import { type AppBridgeBlock } from '@frontify/app-bridge';
+import { Asset } from '@frontify/app-bridge';
export const ICON_CLASS_NAME = 'tw-flex tw-items-center tw-justify-center tw-fill-current';
export const quoteIconMap = (
size: string,
color: string,
- customIconId: string,
- appBridge: AppBridgeBlock
+ customIcon: Asset | undefined
): Record => {
const style: CSSProperties = {
color,
@@ -43,7 +42,7 @@ export const quoteIconMap = (
HookBracketLeft: ,
HookBracketRight: ,
None: null,
- Custom: ,
+ Custom: ,
};
};