
* #38 - wip * #38 - wip * #38 - fix * #38 - fix * #38 - fix * #38 - fix * Update resources/lang/pl.json Co-authored-by: Krzysztof Rewak <krzysztof.rewak@blumilk.pl> * #38 - cr fix Co-authored-by: EwelinaLasowy <ewelina.lasowy@blumilk.pl> Co-authored-by: Krzysztof Rewak <krzysztof.rewak@blumilk.pl>
13 lines
349 B
JavaScript
13 lines
349 B
JavaScript
import {computed} from 'vue'
|
|
import {usePage} from '@inertiajs/inertia-vue3'
|
|
|
|
export default function useCurrentYearPeriodInfo() {
|
|
const minDate = computed(() => new Date(usePage().props.value.years.current, 0, 1))
|
|
const maxDate = computed(() => new Date(usePage().props.value.years.current, 11, 31))
|
|
|
|
return {
|
|
minDate,
|
|
maxDate,
|
|
}
|
|
}
|