import clsx from "clsx"; import React from "react"; import { GithubIcon } from "./icons/github"; export const SourceCodeBadge = ({ path }: { path?: string }) => { const sourcePath = path.startsWith("https://") ? path : `https://github.com/refinedev/refine/blob/master${ path.startsWith("/") ? "" : "/" }${path}`; return ( Source Code ); };