--- import { createToolSlug } from '../utils/toolHelpers.js'; export interface Props { toolName: string; context: 'card' | 'modal-primary' | 'modal-secondary'; size?: 'small' | 'medium'; } const { toolName, context, size = 'small' } = Astro.props; // AFTER: Single line with centralized function const toolSlug = createToolSlug(toolName); const iconSize = size === 'small' ? '14' : '16'; ---