update list view

availability-list
Ryukemeister 2023-10-10 14:47:17 +05:30
parent 5e9394248e
commit 7adfe559ba
1 changed files with 18 additions and 4 deletions

View File

@ -1,14 +1,28 @@
import { Clock } from "@calcom/ui/components/icon";
import { EmptyScreen } from "./EmptyScreen";
export function AvailabilityList({ schedules }: []) {
export function AvailabilityList({ schedules }: { schedules: [] }) {
return (
<>
{schedules.length === 0 ? (
<div>
<EmptyScreen className="w-full" />
<EmptyScreen
Icon={Clock}
headline="Create an availability schedule"
subtitle="Creating availability schedules allows you to manage availability across event types. They can be applied to one or more event types."
className="w-full"
/>
</div>
) : (
<div>Render availability list here</div>
<div>
Render availability list here
<div>
{schedules.map((schedule) => (
<h1 key={schedule?.id}>Hi</h1>
))}
</div>
</div>
)}
</>
);