local-weather/components/DailyCard/DailyTime.tsx

9 lines
206 B
TypeScript
Raw Normal View History

2024-05-12 19:14:36 +00:00
import weekday from "@/utils/functions/weekday"
2024-05-12 05:06:44 +00:00
export default function DailyTime(props: {time: string}) {
2024-05-12 19:14:36 +00:00
const day = weekday(props.time);
2024-05-12 05:06:44 +00:00
return(
2024-05-12 19:14:36 +00:00
<p className="text-sm">{day}</p>
2024-05-12 05:06:44 +00:00
)
}