import React from 'react';
import { Text, View } from '../components/ui';
import colors from '../components/ui/colors';
import { Title } from './title';
type ColorName = keyof typeof colors;
export const Colors = () => {
return (
<>
{/*
{(Object.keys(colors) as ColorName[]).map((name) => (
))} */}
>
);
};
const Color = ({ name }: { name: ColorName }) => {
if (typeof colors[name] === 'string') return null;
return (
{/* {name.toUpperCase()}
{Object.entries(colors[name]).map(([key, value]) => {
return (
);
})}
*/}
);
};
const ColorCard = ({ color, value }: { value: string; color: string }) => {
return (
{value}
);
};