1 2 3 4 5 6 7 8 9 10 11 12 13
import { FSTracerFile } from "../../lib/types" interface FileComponentProps { file: FSTracerFile } export default function FileComponent(props: FileComponentProps) { return ( <a href={`/file/${encodeURIComponent(props.file.id)}`}> <p className="underline">file: {props.file.absolute_path}</p> </a> ) }