useless slop
This commit is contained in:
parent
069400233a
commit
3fb6b6e2c2
6 changed files with 21 additions and 14 deletions
|
@ -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
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue