Locations added
This commit is contained in:
8
frontend/lib/formatLocation.ts
Normal file
8
frontend/lib/formatLocation.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { Location } from "@/types/types";
|
||||
|
||||
// Helper to format location as a string
|
||||
const formatLocation = (location: Location): string => {
|
||||
return `${location.street}, ${location.city}, ${location.postalCode}`;
|
||||
};
|
||||
|
||||
export default formatLocation;
|
||||
Reference in New Issue
Block a user