9 lines
248 B
TypeScript
9 lines
248 B
TypeScript
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;
|