local hour = tonumber(os.date("%H"))

local greeting
if hour < 12 then
	greeting = "Good morning 󰖨"
elseif hour < 18 then
	greeting = "Good afternoon "
else
	greeting = "Good evening 󰖨"
end

return {
	enabled = true,
	width = 32,
	preset = {
		header = [[]],
		keys = {
			{ icon = "", key = "f", desc = "Find File", action = ":Telescope find_files" },
			{
				icon = "",
				key = "c",
				desc = "Config",
				action = ":lua Snacks.dashboard.pick('files', {cwd = vim.fn.stdpath('config')})",
			},
			{ icon = "󰈆", key = "q", desc = "Quit", action = ":qa" },
		},
	},
	sections = {
		{ section = "header" },
		{ section = "keys", gap = 1, padding = 1 },
		{
			text = { { greeting, hl = "MyDashboardFooter" } },
			align = "center",
			padding = 1,
		},
	},
}
