Skip to content

Commit c0d4716

Browse files
committed
Created <TaskFunctionName/>
1 parent 4e4e2e0 commit c0d4716

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

apps/webapp/app/components/runs/v3/TaskPath.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
import { InlineCode, InlineCodeVariant } from "~/components/code/InlineCode";
12
import { SpanCodePathAccessory } from "./SpanTitle";
3+
import { cn } from "~/utils/cn";
24

35
type TaskPathProps = {
46
filePath: string;
@@ -16,3 +18,17 @@ export function TaskPath({ filePath, functionName, className }: TaskPathProps) {
1618
/>
1719
);
1820
}
21+
22+
type TaskFunctionNameProps = {
23+
functionName: string;
24+
variant?: InlineCodeVariant;
25+
className?: string;
26+
};
27+
28+
export function TaskFunctionName({ variant, functionName, className }: TaskFunctionNameProps) {
29+
return (
30+
<InlineCode variant={variant} className={cn("text-sun-100", className)}>
31+
{functionName}()
32+
</InlineCode>
33+
);
34+
}

0 commit comments

Comments
 (0)