Zynh0722
96dd76e463
Oh boy what a mess this was lmao, I definitely should have done this is more atomic commits But it could also be argued that very little of this is standalone
20 lines
347 B
HTML
20 lines
347 B
HTML
@use super::base_html;
|
|
@use super::components::close_shift_button_html;
|
|
@use super::components::open_shift_button_html;
|
|
@use cm_lib::models::Shift;
|
|
|
|
@(open_shift: Option<Shift>)
|
|
|
|
@:base_html({
|
|
|
|
<main>
|
|
<div>
|
|
@if open_shift.is_none() {
|
|
@:open_shift_button_html()
|
|
} else {
|
|
@:close_shift_button_html()
|
|
}
|
|
</div>
|
|
</main>
|
|
|
|
})
|