import { SurveyChart, buildWhereClause } from '../SurveyChart' function generateSalesToolsSQL(activeFilters: Record) { const whereClause = buildWhereClause(activeFilters) return `WITH customer_tool_mapping AS ( SELECT id, CASE WHEN tool IN ( 'HubSpot', 'Salesforce', 'Pipedrive', 'Close.com', 'Notion / Airtable', 'Google Sheets', 'We don’t have a formal CRM or sales tool yet' ) THEN tool ELSE 'Other' END AS tool_clean FROM ( SELECT id, unnest(sales_tools) AS tool FROM responses_2025 ${whereClause} ) sub ) SELECT tool_clean AS tool, COUNT(DISTINCT id) AS respondents FROM customer_tool_mapping GROUP BY tool_clean ORDER BY respondents DESC;` } export function SalesToolsChart() { return ( ) }