import { mergeClasses } from '@expo/styleguide'; import { Stars02Icon } from '@expo/styleguide-icons'; import { TagProps } from './Tag'; import { labelStyle, tagStyle, tagToCStyle } from './styles'; import { formatName, TAG_CLASSES } from '~/ui/components/Tag/helpers'; type StatusTagProps = Omit & { status: 'deprecated' | 'experimental' | string; note?: string; }; export const StatusTag = ({ status, type, note, className }: StatusTagProps) => { return (
{status === 'experimental' && } {status ? formatName(status) + (note ? `: ${note}` : '') : note}
); };