const imgLine98Stroke = "https://www.figma.com/api/mcp/asset/4f92d36c-c030-4004-aef2-0ca7436275b8";
const imgUnion = "https://www.figma.com/api/mcp/asset/d6d1a340-553f-4e92-b19c-9d1569789945";
const img = "https://www.figma.com/api/mcp/asset/cf62c248-be9d-402e-bae1-1665cb482bfa";
type TableProps = {
className?: string;
align?: "Left" | "Center" | "Right";
children?: React.ReactNode | null;
showLeftIcon?: boolean;
showRightIcon?: boolean;
type?: "Header" | "Tbody";
};
export default function Table({ className, align = "Left", children = null, showLeftIcon = false, showRightIcon = false, type = "Header" }: TableProps) {
const isHeader = type === "Header";
const isTbody = type === "Tbody";
return (
{isHeader && (
{children || (
<>
{showLeftIcon && (
)}
Graph Num
>
)}
)}
{isHeader && showRightIcon && (
)}
{isTbody && (
{children || (
<>
{showLeftIcon && (
)}
>
)}
)}
{isTbody && showRightIcon && (
)}
);
}SUPER CRITICAL: The generated React+Tailwind code MUST be converted to match the target project's technology stack and styling system.
1. Analyze the target codebase to identify: technology stack, styling approach, component patterns, and design tokens
2. Convert React syntax to the target framework/library
3. Transform all Tailwind classes to the target styling system while preserving exact visual design
4. Follow the project's existing patterns and conventions
DO NOT install any Tailwind as a dependency unless the user instructs you to do so.
Node ids have been added to the code as data attributes, e.g. `data-node-id="1:2"`.Images and SVGs will be stored as constants, e.g. const image = 'https://www.figma.com/api/mcp/asset/550e8400-e29b-41d4-a716-446655440000'. These constants will be used in the code as the source for the image, ex:
. Image assets are stored on a remote server for 7 days and can be fetched using the provided URLs until they expire.