useless slop

This commit is contained in:
nin0 2025-05-22 19:10:38 -04:00
parent 069400233a
commit 3fb6b6e2c2
Signed by: nin0
SSH key fingerprint: SHA256:NOoDnFVvZNFvqfXCIhzr6oCTDImZAbTTuyAysZ8Ufk8
6 changed files with 21 additions and 14 deletions

View file

@ -2,12 +2,17 @@ import { ComponentTypes, ContainerComponent } from "oceanic.js";
import { childrenToArray } from "./utils";
export type ContainerProps = Omit<ContainerComponent, "type" | "components"> & { children: ContainerComponent["components"]; };
export type ContainerProps = Omit<ContainerComponent, "type" | "components"> & {
children: ContainerComponent["components"];
};
export function Container({ children, ...props }: ContainerProps): ContainerComponent {
return {
type: ComponentTypes.CONTAINER,
components: childrenToArray(children),
...props
};
export function Container({
children,
...props
}: ContainerProps): ContainerComponent {
return {
type: ComponentTypes.CONTAINER,
components: childrenToArray(children),
...props
};
}