"use client"
import { Panel } from "@/app/interface/panel"
import { pick } from "@/lib/pick"
import { Grid } from "@/app/interface/grid"
export function Layout1() {
return (
)
}
export function Layout2() {
return (
)
}
export function Layout3() {
return (
)
}
export function Layout4() {
return (
)
}
export function Layout5() {
return (
)
}
export function Layout6() {
return (
)
}
// export const layouts = { Layout1, Layout2, Layout3, Layout4, Layout5, Layout6 }
export const allLayouts = {
// Layout1,
// Layout2,
// Layout3,
// Layout4,
Layout5,
// Layout6
}
export type LayoutName = keyof typeof allLayouts
export function getRandomLayoutName(): LayoutName {
return pick(Object.keys(allLayouts) as LayoutName[]) as LayoutName
}
export function getRandomLayoutNames(): LayoutName[] {
return Object.keys(allLayouts).sort(() => Math.random() - 0.5) as LayoutName[]
}