diff options
| author | Manuel Palenzuela Merino <[email protected]> | 2024-07-11 11:22:06 +0200 |
|---|---|---|
| committer | Manuel Palenzuela Merino <[email protected]> | 2024-07-11 11:22:06 +0200 |
| commit | 7a8b457f96e18b945937966ee6ba7193d20165d1 (patch) | |
| tree | 7ae2c5b185fb3bb6b4d45b0c284195acb30d8df0 /src/lib | |
| parent | Components: Sidebar: Show link on hover (diff) | |
| download | fs-tracer-frontend-7a8b457f96e18b945937966ee6ba7193d20165d1.tar.gz fs-tracer-frontend-7a8b457f96e18b945937966ee6ba7193d20165d1.tar.bz2 fs-tracer-frontend-7a8b457f96e18b945937966ee6ba7193d20165d1.zip | |
Components: FileCompnent: Add filecomponent
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> + ) } |