"use client"; import * as React from "react"; import { Type, Hash, Calendar, CheckSquare, CircleDot, ChevronDownCircle, List, Link2, Paperclip, ArrowRightLeft, Sigma, FunctionSquare, Clock, History, Sparkles, Heading, Table2, Kanban, CalendarDays, LayoutGrid, GanttChart, Rows3 } from "lucide-react"; import type { PropertyType, ViewType } from "@/lib/databases/types"; import { cn } from "@/lib/utils"; export const TYPE_META: Record = { title: { label: "Title", icon: }, text: { label: "Text", icon: }, number: { label: "Number", icon: }, date: { label: "Date", icon: }, checkbox: { label: "Checkbox", icon: }, status: { label: "Status", icon: }, select: { label: "Select", icon: }, multi_select: { label: "Multi-select", icon: }, url: { label: "URL", icon: }, file: { label: "Files", icon: }, relation: { label: "Relation", icon: }, rollup: { label: "Rollup", icon: }, formula: { label: "Formula", icon: }, created_time: { label: "Created time", icon: }, last_edited_time: { label: "Last edited", icon: }, ai: { label: "AI", icon: }, }; export const VIEW_META: Record = { table: { label: "Table", icon: }, board: { label: "Board", icon: }, calendar: { label: "Calendar", icon: }, gallery: { label: "Gallery", icon: }, timeline: { label: "Timeline", icon: }, list: { label: "List", icon: } }; export const TypeIcon = ({ type, className }: { type: PropertyType; className?: string }) => {TYPE_META[type]?.icon}; export function Sel({ className, children, ...p }: React.SelectHTMLAttributes) { return ; } export const Field = ({ label, children, hint }: { label: string; children: React.ReactNode; hint?: string }) => ; export const inputCls = "h-8 w-full rounded-md border border-line bg-bg-elev px-2 text-[13px] outline-none placeholder:text-fg-faint focus:border-accent/50";