mirror of
https://github.com/logos-messaging/examples.waku.org.git
synced 2026-01-05 06:13:11 +00:00
* use next.js tempalte * use next lint rules * alight UI * fix problem with margins * remove old page, rename to hooks * add constants * create RLN service, add utils * add RLN init * refactor a bit * add init for Keystore * add store functions * add styles * add contract hooks, add store fields, fix multiple downloads issue * add features * add keystore read logic * add import export * combine to useContract * add useWaku stub, add state to Waku block, styles * add creation of a node * add messages functionality * up readme * update CI * update readme * remove and rename, address comments * update readme * move const
24 lines
512 B
TypeScript
24 lines
512 B
TypeScript
export enum BlockTypes {
|
|
FlexHorizontal = "flex-horizontal",
|
|
}
|
|
|
|
type BlockProps = {
|
|
children: any;
|
|
type?: BlockTypes;
|
|
className?: string;
|
|
};
|
|
|
|
export const Block: React.FunctionComponent<BlockProps> = (props) => {
|
|
const flexClassNames =
|
|
props.type === BlockTypes.FlexHorizontal
|
|
? "items-center justify-between lg:flex"
|
|
: "";
|
|
const restClassNames = props.className || "";
|
|
|
|
return (
|
|
<div className={`${flexClassNames} ${restClassNames}`}>
|
|
{props.children}
|
|
</div>
|
|
);
|
|
};
|