diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/types.tsx | 22 |
1 files changed, 16 insertions, 6 deletions
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 ( + <p className="underline">file: {props.file.absolute_path}</p> + ) } |