import type { ReactNode } from 'react';
import govOpsLogo from '../assets/govops-logo.webp';
import dnrLogo from '../assets/natural-resources-logo.webp';
import { Link } from './Link.tsx';
type FooterLink = { url: string; title: string };
type FooterLinkColumn = {
title: string;
links: FooterLink[];
};
export type FooterProps = {
renderAddress?: () => ReactNode;
columnOne?: FooterLinkColumn;
columnTwo?: FooterLinkColumn;
columnThree?: FooterLinkColumn;
};
const ugrcStandardLinks = {
columnOne: {
title: 'Main menu',
links: [
{
url: 'https://gis.utah.gov/',
title: 'Home',
},
{
url: 'https://gis.utah.gov/products/',
title: 'Products',
},
{
url: 'https://gis.utah.gov/solutions/',
title: 'Solutions',
},
{
url: 'https://gis.utah.gov/documentation/',
title: 'Documentation',
},
{
url: 'https://gis.utah.gov/collaboration/',
title: 'Collaboration',
},
{
url: 'https://gis.utah.gov/blog/',
title: 'Blog',
},
{
url: 'https://gis.utah.gov/about/',
title: 'About',
},
{
url: 'https://gis.utah.gov/contact/',
title: 'Contact',
},
],
},
columnTwo: {
title: 'Helpful links',
links: [
{
url: 'https://github.com/agrc/gis.utah.gov/blob/main/.github/contributing.md',
title: 'Content contributing guide',
},
{
url: 'https://gis.utah.gov/about/media/',
title: 'Logos and media resources',
},
{
url: 'https://gis.utah.gov/documentation/policy/',
title: 'UGRC Policies',
},
{
url: 'https://gis.utah.gov/about/code/',
title: 'GIS-related Utah statute',
},
{
url: 'https://s.utah.gov/ugrc-newsletter',
title: 'Sign up for our newsletter',
},
],
},
columnThree: {
title: 'Website information',
links: [
{
url: 'https://gis.utah.gov/collaboration/community/contributors/',
title: 'Contributors',
},
{
url: 'https://github.com/agrc/gis.utah.gov/issues/new',
title: 'Report an issue',
},
],
},
};
export const dnrStandardLinks = ({ repository }: { repository?: string }) => {
const columnThree = {
title: 'Website information',
links: [
{
url: `https://gis.utah.gov/solutions/`,
title: 'Built by UGRC 📍',
},
],
};
if (repository) {
columnThree.links.push({
url: `https://github.com/${repository}/issues/new`,
title: 'Report an issue',
});
}
return {
columnOne: {
title: 'Main menu',
links: [
{
url: 'https://naturalresources.utah.gov/',
title: 'Home',
},
{
url: 'https://naturalresources.utah.gov/home/we-are-dnr/',
title: 'About',
},
{
url: 'https://naturalresources.utah.gov/employment/',
title: 'Employment',
},
{
url: 'https://naturalresources.utah.gov/category/dnr-newsfeed/',
title: 'News',
},
{
url: 'https://naturalresources.utah.gov/contact-us/',
title: 'Contact us',
},
],
},
columnTwo: {
title: 'Online services',
links: [
{
url: 'https://parkspass.utah.gov/parks/PANUAL/dayuse',
title: 'Buy an Annual Parks Pass',
},
{
url: 'https://stateparks.utah.gov/parks/',
title: 'Find a State Park',
},
{
url: 'https://www.utahmapstore.com/',
title: 'Map & Bookstore',
},
{
url: 'https://docs.google.com/forms/d/e/1FAIpQLSetj-yoOg9OWktL2TWGeegAEda2CkcisHLTav7XxrxzVPwCsA/viewform',
title: 'Report Water Waste',
},
{
url: 'https://wildlife.utah.gov/report-a-poacher.html',
title: 'Turn-in-a-Poacher',
},
{
url: 'https://docs.google.com/forms/d/e/1FAIpQLSetj-yoOg9OWktL2TWGeegAEda2CkcisHLTav7XxrxzVPwCsA/viewform',
title: 'Water-saving Rebates & Resources',
},
{
url: 'https://wildlife.utah.gov/',
title: 'Wildlife Resources',
},
],
},
columnThree,
};
};
export const Footer = ({
renderAddress = () =>
{columnOne.links.map((link, index) => (
{columnTwo.links.map((link, index) => (
{columnThree.links.map((link, index) => (