From 7a8b457f96e18b945937966ee6ba7193d20165d1 Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Merino Date: Thu, 11 Jul 2024 11:22:06 +0200 Subject: Components: FileCompnent: Add filecomponent --- src/lib/types.tsx | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'src/lib') diff --git a/src/lib/types.tsx b/src/lib/types.tsx index a0567e6..00ab909 100644 --- a/src/lib/types.tsx +++ b/src/lib/types.tsx @@ -1,7 +1,17 @@ -interface File { - id: number - user_id: string - absolute_path: string - contents: string - timestamp: string +export type FSTracerFile = { + id: number; + user_id: string; + absolute_path: string; + contents: string; + timestamp: string; +} + +interface FileComponentProps { + file: FSTracerFile +} + +export default function FileComponent(props: FileComponentProps) { + return ( +

file: {props.file.absolute_path}

+ ) } -- cgit 1.4.1