"use client"; import React from "react"; import { ChartDataSource } from "../types"; import { Card } from "@/components/ui/card"; import { Database, Globe } from "lucide-react"; interface DataSourceSelectorProps { dataSource: ChartDataSource; onTypeChange: (type: "database" | "api") => void; } /** * 데이터 소스 선택 컴포넌트 * - DB vs API 선택 * - 큰 카드 UI로 직관적인 선택 */ export function DataSourceSelector({ dataSource, onTypeChange }: DataSourceSelectorProps) { return (
차트에 표시할 데이터를 어디서 가져올지 선택하세요
SQL 쿼리로 데이터 조회
외부 API에서 데이터 가져오기