import { __ } from '@wordpress/i18n'; import { colord, AnyColor } from 'colord'; import { Attributes } from '../../../types'; export const BlockLeft = ({ bgColor, textColor, seeMoreString, disablePadding, context, footerType, }: Partial & { context?: string }) => { const backgroundColor = colord(bgColor as AnyColor).toHex(); const textC = colord(textColor as AnyColor); const color = textC.isDark() ? textC.lighten(0.05).toHex() : textC.darken(0.05).toHex(); const hasFooter = footerType !== 'none'; const inEditor = context === 'editor'; return (
{/* span is used to avoid theme button styling */} {seeMoreString || __('Expand', 'code-block-pro')}
); };