um-react/src/components/FilePathBlock.tsx

11 lines
276 B
TypeScript
Raw Normal View History

2023-06-15 19:34:15 +00:00
import { Code, Text } from '@chakra-ui/react';
import React from 'react';
export function FilePathBlock({ children }: { children: React.ReactNode }) {
return (
<Text as="pre" whiteSpace="pre-wrap" wordBreak="break-all">
<Code>{children}</Code>
</Text>
);
}