mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-17 17:15:56 +08:00

Co-authored-by: NFish <douxc512@gmail.com> Co-authored-by: zxhlyh <jasonapring2015@outlook.com> Co-authored-by: twwu <twwu@dify.ai> Co-authored-by: jZonG <jzongcode@gmail.com>
22 lines
507 B
TypeScript
22 lines
507 B
TypeScript
import React from 'react'
|
|
import { useDaysOfWeek } from '../hooks'
|
|
|
|
export const DaysOfWeek = () => {
|
|
const daysOfWeek = useDaysOfWeek()
|
|
|
|
return (
|
|
<div className='grid grid-cols-7 gap-x-0.5 border-b-[0.5px] border-divider-regular p-2'>
|
|
{daysOfWeek.map(day => (
|
|
<div
|
|
key={day}
|
|
className='system-2xs-medium flex items-center justify-center text-text-tertiary'
|
|
>
|
|
{day}
|
|
</div>
|
|
))}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default React.memo(DaysOfWeek)
|