2
0
Files
bot/apps/builder/src/features/blocks/logic/code/components/CodeNodeContent.tsx
2022-11-15 15:14:38 +01:00

12 lines
321 B
TypeScript

import React from 'react'
import { Text } from '@chakra-ui/react'
import { CodeOptions } from 'models'
type Props = CodeOptions
export const CodeNodeContent = ({ name, content }: Props) => (
<Text color={content ? 'currentcolor' : 'gray.500'} noOfLines={1}>
{content ? `Run ${name}` : 'Configure...'}
</Text>
)