import React from 'react'; import cx from 'classnames'; export type Variant = 'code'; export type Size = 'heading'; const aligns = { left: 'left', right: 'right', center: 'center', }; export function Text(props: { variant?: Size; style?: Variant; children: React.ReactNode; align?: keyof typeof aligns; className?: string; }) { const Tag = props.variant === 'heading' ? 'h1' : 'div'; return ( <> {props.children} ); }