- Updated import paths for various components to align with new directory structure. - Changed imports from 'row-actions', 'confirm-dialog', 'image-preview-button', and 'file-upload' to their respective new locations in 'data-display', 'dialogs', and 'inputs'. - Adjusted imports in multiple pages including purchase, restock, transaction, category, customer, product, raw-material, supplier, roles, and settings. - Ensured all relevant components are imported from their new locations to maintain functionality.
27 lines
621 B
TypeScript
27 lines
621 B
TypeScript
interface LocationMapProps {
|
|
latitude: number;
|
|
longitude: number;
|
|
height?: string;
|
|
zoom?: number;
|
|
}
|
|
|
|
export function LocationMap({
|
|
latitude,
|
|
longitude,
|
|
height = '250px',
|
|
zoom = 17,
|
|
}: LocationMapProps) {
|
|
const src = `https://maps.google.com/maps?q=${latitude},${longitude}&z=${zoom}&t=k&output=embed`;
|
|
|
|
return (
|
|
<iframe
|
|
src={src}
|
|
style={{ height, width: '100%', border: 0 }}
|
|
className="rounded-lg"
|
|
loading="lazy"
|
|
referrerPolicy="no-referrer-when-downgrade"
|
|
title="Lokasi Presensi"
|
|
/>
|
|
);
|
|
}
|