import React, { useMemo } from "react"; import { Typography } from "../../components"; import { cls, getColorSchemeForKey } from "../../util"; export interface BoardColumnTitleProps { children: React.ReactNode; className?: string; "aria-label"?: string; color?: any; } export function BoardColumnTitle({ children, className, color, ...props }: BoardColumnTitleProps) { const colorScheme = useMemo(() => { if (!color) return undefined; if (typeof color === "string") { return getColorSchemeForKey(color); } return color; }, [color]); return ( {colorScheme && (
)} {children} ); }